Update crate-ci/typos action to v1.35.1 #240
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |