LeanAgent Proofs (#67) #294
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
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build project | |
steps: | |
- name: checkout project | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: install elan | |
run: | | |
set -o pipefail | |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y | |
~/.elan/bin/lean --version | |
echo "$HOME/.elan/bin" >> $GITHUB_PATH | |
echo "short_lean_version=$(~/.elan/bin/lean --run scripts/lean_version.lean)" >> $GITHUB_ENV | |
- name: get mathlib cache | |
run: lake exe cache get | |
- name: lake build | |
id: build | |
run: | | |
set -o pipefail | |
echo "Starting build at $(date +'%T')" | |
lake build | |
result_run1=$? | |
echo "Complete 🧱 at $(date +'%T'); return value $result_run1" | |
# TODO: add linting? |