Skip to content

Commit

Permalink
Add github CI, copied from std4 (#116)
Browse files Browse the repository at this point in the history
* Add github CI, copied from std4

* get cache

* remove sphinx testing for now

* bump elan version
  • Loading branch information
eric-wieser authored Aug 28, 2023
1 parent cc97e56 commit 087f7a1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
pull_request:

name: ci

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/v2.0.1/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3

- name: update MIL.lean
run: |
find MIL -name "*.lean" | LC_ALL=C sort | sed 's/\.lean//;s,/,.,g;s/^/import /' > Std.lean
- name: get cache
run: lake exe cache get

- name: build MIL
run: lake build

- name: check that all files are imported
run: git diff --exit-code

0 comments on commit 087f7a1

Please sign in to comment.