feat: make ap_in_ff sorry-free
#386
Workflow file for this run
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
| name: Build Lean project | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| style_lint: | |
| name: Lint style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Don't 'import Mathlib', use precise imports | |
| if: always() | |
| run: | | |
| ! (find APAP -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Mathlib$') | |
| - name: Files in APAP.Mathlib can't import APAP files outside APAP.Mathlib | |
| run: | | |
| ! (find APAP/Mathlib -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import APAP.(?!Mathlib)') | |
| build: | |
| name: Build project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Fetch all history for all branches and tags | |
| - name: Build and lint the project | |
| id: build-lean | |
| uses: leanprover/lean-action@f807b338d95de7813c5c50d018f1c23c9b93b4ec # v1.2.0 | |
| - name: Copy README.md to website/index.md | |
| if: github.ref == 'refs/heads/master' | |
| run: cp README.md website/index.md | |
| - name: Upstreaming dashboard | |
| if: github.ref == 'refs/heads/master' | |
| uses: leanprover-community/upstreaming-dashboard-action@main | |
| with: | |
| website-directory: ./website | |
| project-name: APAP | |
| include-drafts: true | |
| branch-name: master | |
| - name: File dependencies | |
| if: github.ref == 'refs/heads/master' | |
| run: | | |
| sudo apt-get update | |
| sudo apt install graphviz -y | |
| ~/.elan/bin/lake exe graph website/file_deps.pdf | |
| - name: Build project documentation | |
| if: github.ref == 'refs/heads/master' | |
| id: build-docgen | |
| uses: leanprover-community/docgen-action@main | |
| with: | |
| blueprint: true | |
| homepage: "website" |