49 Fix broken links #176
Workflow file for this run
This file contains 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: 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: | |
name: Build | |
runs-on: ubuntu-latest | |
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 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
folder: .lake/build/doc | |
target-folder: docs | |
single-commit: true |