Skip to content

Update crate-ci/typos action to v1.35.1 #240

Update crate-ci/typos action to v1.35.1

Update crate-ci/typos action to v1.35.1 #240

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
name: Lean (build)
'on':
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write # to submit generated documentation to GitHub Pages
jobs:
build:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- name: '🧰 Install elan'
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.5/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: 'πŸ“₯ Checkout repository'
uses: actions/checkout@v4
- name: 'πŸ‘ Cache .lake/'
id: cache-lake
uses: actions/cache@v4
with:
path: .lake/
key: ${{ runner.os }}-${{ hashFiles('lakefile.lean', 'lake-manifest.json') }}-lake
- name: 'βš™οΈ Resolve dependencies (inluding docs)'
if: steps.cache-lake.outputs.cache-hit != 'true'
run: |
lake -R -Kenv=dev update
- name: 'πŸ”¨ Build Lean package'
run: lake build -Kwerror
- name: 'πŸ”¨ Generate documentation'
run: |
lake -R -Kenv=dev build PhiCalculus:docs
lake update doc-gen4
lake -R -Kenv=dev build Minimal.Calculus:docs
- name: 'πŸš€ Publish Documentation'
if: ${{ github.ref_name == 'master' && github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: .lake/build/doc
target-folder: docs
single-commit: true