Skip to content

Commit

Permalink
Add check NoCI to CI, but allow failure
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 22, 2024
1 parent 37e5713 commit cadb3b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/lean4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,16 @@ jobs:
# lake env leanInk analyze examples/Help.lean
cd ..
just pages lean4
- name: Try mk_all
# - name: Try mk_all
# shell: bash
# run: |
# cd lean4
# rm -f .lake/packages/mathlib/lakefile.lean
# mv lakefile-for-mathlib.lean .lake/packages/mathlib/lakefile.lean
# lake -R exe mk_all || true
- name: Try check NoCI examples
shell: bash
run: |
cd lean4
rm -f .lake/packages/mathlib/lakefile.lean
mv lakefile-for-mathlib.lean .lake/packages/mathlib/lakefile.lean
lake -R exe mk_all || true
./check_noci.sh || true
11 changes: 11 additions & 0 deletions lean4/check_noci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# leanpkg configure
# leanproject get-mathlib-cache

set -e
set -o pipefail

export PATH=$HOME/.elan/bin:$PATH

echo "checking RockPaperScissor"
lake env lean --quiet --run Playground/NoCI/Zulip/RockPaperScissor.lean < Playground/NoCI/Zulip/RockPaperScissor_test1.txt

0 comments on commit cadb3b5

Please sign in to comment.