Download .github/workflows/push.yml from cfahlgren1/lean-pfr: direct link, hf CLI and curl.
- Browser
- Download file 2.34 kB
-
https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/.github/workflows/push.yml
- Command line
-
hf download hf://datasets/cfahlgren1/lean-pfr/.github/workflows/push.yml
-
curl -L -o push.yml https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/.github/workflows/push.yml
2.34 kB
| 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 PFR -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Mathlib$') | |
| - name: Files in PFR.Mathlib can't import PFR files outside PFR.Mathlib | |
| run: | | |
| ! (find PFR/Mathlib -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import PFR.(?!Mathlib)') | |
| build: | |
| name: Build project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cleanup to free disk space | |
| uses: jlumbroso/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| android: true | |
| dotnet: false | |
| haskell: false | |
| large-packages: false | |
| docker-images: false | |
| swap-storage: false | |
| - name: Checkout project | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Fetch all history for all branches and tags | |
| - name: Copy README.md to website/index.md | |
| run: cp README.md website/index.md | |
| - name: Build and lint the project | |
| id: build-lean | |
| uses: leanprover/lean-action@f807b338d95de7813c5c50d018f1c23c9b93b4ec # v1.2.0 | |
| - name: Upstreaming dashboard | |
| if: github.ref == 'refs/heads/master' | |
| uses: leanprover-community/upstreaming-dashboard-action@main | |
| with: | |
| website-directory: ./website | |
| project-name: PFR | |
| 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" | |