Skip to content

add lean statement #278

add lean statement

add lean statement #278

Workflow file for this run

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?