-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an input and corresponding step for checking the enviornment with lean4checker. Note, currently this only works for projects which use toolchain/v4.7.0.
- Loading branch information
1 parent
0aebfe5
commit 10ad39a
Showing
2 changed files
with
32 additions
and
0 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
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,19 @@ | ||
echo "Checking environment with lean4checker" | ||
|
||
|
||
# clone lean4checker | ||
echo "Cloning and building lean4checker" | ||
git clone https://github.com/leanprover/lean4checker | ||
cd lean4checker | ||
git config --global advice.detachedHead false # turn off git warning about detached head | ||
git checkout toolchain/v4.7.0 | ||
cp ../lean-toolchain . | ||
|
||
# build lean4checker and test lean4checker | ||
lake build | ||
./test.sh | ||
cd .. | ||
|
||
# run lean4checker | ||
echo "Running lean4checker" | ||
lake env lean4checker/.lake/build/bin/lean4checker |