Skip to content

Commit

Permalink
Add github actions CI, and fix .gitignore
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 662932742
Change-Id: I44a80e20a4e37853b8cfd63d5c9690b2ca1c3eff
  • Loading branch information
eric-wieser committed Aug 14, 2024
1 parent 525e176 commit bff6052
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/lean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
push:
pull_request:

name: build lean

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/v3.1.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: Set up olean cache
uses: actions/cache@v3
with:
path: ~/.cache
key: oleans

- name: Configure
working-directory: lean4
run: |
lake exe cache get
- name: Build
working-directory: lean4
run: |
lake build
- name: Save olean cache
working-directory: lean4
run: |
lake exe cache pack
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/build
/lake-packages
*.olean
.lake/

0 comments on commit bff6052

Please sign in to comment.