-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger CI for leanprover/lean4#6334
- Loading branch information
Showing
350 changed files
with
8,796 additions
and
3,031 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
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
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,19 +1,23 @@ | ||
# https://chat.openai.com/share/26102e95-ac9c-4d03-a000-73e4f6cee8cd | ||
name: lean4checker Workflow | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Runs at 00:00 UTC every day | ||
workflow_dispatch: | ||
|
||
env: | ||
DEFAULT_BRANCH: master | ||
TAG_PATTERN: '^nightly-testing-[0-9]{4}-[0-9]{2}-[0-9]{2}$' | ||
|
||
jobs: | ||
check-lean4checker: | ||
runs-on: pr | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
branch_type: [master, nightly] | ||
steps: | ||
|
||
- name: cleanup | ||
- name: Cleanup | ||
run: | | ||
find . -name . -o -prune -exec rm -rf -- {} + | ||
# Delete all but the 5 most recent toolchains. | ||
# Make sure to delete both the `~/.elan/toolchains/X` directory and the `~/.elan/update-hashes/X` file. | ||
# Skip symbolic links (`-type d`), the current directory (`! -name .`), and `nightly` and `stable`. | ||
|
@@ -23,21 +27,24 @@ jobs: | |
: # Do nothing on failure, but suppress errors | ||
fi | ||
# The Hoskinson runners may not have jq installed, so do that now. | ||
- name: 'Setup jq' | ||
uses: dcarbone/[email protected] | ||
|
||
- name: install elan | ||
- 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}" | ||
- name: Checkout master branch | ||
- name: Fetch latest tags (if nightly) | ||
if: matrix.branch_type == 'nightly' | ||
run: | | ||
git fetch --tags | ||
LATEST_TAG=$(git tag | grep -E "${{ env.TAG_PATTERN }}" | sort -r | head -n 1) | ||
echo "LATEST_TAG=${LATEST_TAG}" >> "$GITHUB_ENV" | ||
- name: Checkout branch or tag | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'master' | ||
ref: ${{ matrix.branch_type == 'master' && env.DEFAULT_BRANCH || env.LATEST_TAG }} | ||
|
||
- name: If using a lean-pr-release toolchain, uninstall | ||
run: | | ||
|
@@ -46,7 +53,7 @@ jobs: | |
elan toolchain uninstall "$(cat lean-toolchain)" | ||
fi | ||
- name: print lean and lake versions | ||
- name: Print Lean and Lake versions | ||
run: | | ||
lean --version | ||
lake --version | ||
|
@@ -55,16 +62,6 @@ jobs: | |
run: | | ||
lake exe cache get | ||
- name: prune ProofWidgets .lake | ||
run: | | ||
# The ProofWidgets release contains not just the `.js` (which we need in order to build) | ||
# but also `.oleans`, which may have been built with the wrong toolchain. | ||
# This removes them. | ||
# See discussion at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/nightly-testing/near/411225235 | ||
rm -rf .lake/packages/proofwidgets/.lake/build/lib | ||
rm -rf .lake/packages/proofwidgets/.lake/build/ir | ||
lake build ProofWidgets | ||
- name: Check environments using lean4checker | ||
id: lean4checker | ||
run: | | ||
|
@@ -100,7 +97,7 @@ jobs: | |
type: 'stream' | ||
topic: 'lean4checker' | ||
content: | | ||
✅ lean4checker [succeeded](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} | ||
✅ lean4checker [succeeded](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} (branch: ${{ matrix.branch_type == 'master' && 'master' || env.LATEST_TAG }}) | ||
- name: Post failure message on Zulip | ||
if: failure() | ||
|
@@ -113,7 +110,7 @@ jobs: | |
type: 'stream' | ||
topic: 'lean4checker failure' | ||
content: | | ||
❌ lean4checker [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} | ||
❌ lean4checker [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} (branch: ${{ matrix.branch_type == 'master' && 'master' || env.LATEST_TAG }}) | ||
continue-on-error: true | ||
|
||
- name: Post failure message on Zulip main topic | ||
|
@@ -127,5 +124,5 @@ jobs: | |
type: 'stream' | ||
topic: 'lean4checker' | ||
content: | | ||
❌ lean4checker [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} | ||
❌ lean4checker [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) on ${{ github.sha }} (branch: ${{ matrix.branch_type == 'master' && 'master' || env.LATEST_TAG }}) | ||
continue-on-error: true |
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
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
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
Oops, something went wrong.