-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions CI, and fix .gitignore
PiperOrigin-RevId: 662932742 Change-Id: I44a80e20a4e37853b8cfd63d5c9690b2ca1c3eff
- Loading branch information
1 parent
525e176
commit c938bab
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 | ||
run: | | ||
lake exe cache get | ||
- name: Build | ||
run: | | ||
lake build | ||
- name: Save olean cache | ||
run: | | ||
lake exe cache pack |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
/build | ||
/lake-packages | ||
*.olean | ||
.lake/ |