-
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.
Merge branch 'master' into YK-normed-alternating
- Loading branch information
Showing
1,098 changed files
with
27,970 additions
and
10,571 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
pull_request: | ||
types: [labeled, unlabeled] | ||
jobs: | ||
set_pr_emoji: | ||
if: github.event.label.name == 'awaiting-author' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout mathlib repository | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
scripts/zulip_emoji_merge_delegate.py | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install zulip | ||
- name: Add or remove emoji | ||
env: | ||
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }} | ||
ZULIP_EMAIL: [email protected] | ||
ZULIP_SITE: https://leanprover.zulipchat.com | ||
PR_NUMBER: ${{ github.event.number}} | ||
LABEL_STATUS: ${{ github.event.action }} | ||
run: | | ||
printf $'Running the python script with pr "%s"\n' "$PR_NUMBER" | ||
python scripts/zulip_emoji_merge_delegate.py "$ZULIP_API_KEY" "$ZULIP_EMAIL" "$ZULIP_SITE" "$LABEL_STATUS" "$PR_NUMBER" |
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.