-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into xfr-unitpart_basic
- Loading branch information
Showing
3,893 changed files
with
142,633 additions
and
63,538 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# This is the master file for autogenerating `.github/workflows/{bors, build_fork, build }.yml`. | ||
### NB: This is the master file for autogenerating | ||
### NB: `.github/workflows/{bors, build_fork, build}.yml`. | ||
### NB: If you need to edit any of those files, you should edit this file instead, | ||
### NB: and regenerate those files by manually running | ||
### NB: .github/workflows/mk_build_yml.sh | ||
|
||
jobs: | ||
# Cancels previous runs of jobs in this file | ||
|
@@ -29,7 +33,7 @@ jobs: | |
uses: credfeto/[email protected] | ||
|
||
- name: Look for ignored files | ||
uses: credfeto/action-no-ignored-files@v1.1.0 | ||
uses: credfeto/action-no-ignored-files@v1.2.0 | ||
|
||
- name: "Check for Lean files with the executable bit set" | ||
shell: bash | ||
|
@@ -69,25 +73,6 @@ jobs: | |
run: | | ||
./scripts/lint-bib.sh | ||
check_workflows: | ||
if: github.repository MAIN_OR_FORK 'leanprover-community/mathlib4' | ||
name: check workflowsJOB_NAME | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: cleanup | ||
run: | | ||
find . -name . -o -prune -exec rm -rf -- {} + | ||
- uses: actions/checkout@v4 | ||
|
||
- name: update workflows | ||
run: | | ||
cd .github/workflows/ | ||
./mk_build_yml.sh | ||
- name: check that workflows were consistent | ||
run: git diff --exit-code | ||
|
||
build: | ||
if: github.repository MAIN_OR_FORK 'leanprover-community/mathlib4' | ||
name: BuildJOB_NAME | ||
|
@@ -107,7 +92,7 @@ jobs: | |
# The Hoskinson runners may not have jq installed, so do that now. | ||
- name: 'Setup jq' | ||
uses: dcarbone/install-jq-action@v1.0.1 | ||
uses: dcarbone/install-jq-action@v2.1.0 | ||
|
||
- name: install elan | ||
run: | | ||
|
@@ -130,9 +115,6 @@ jobs: | |
lean --version | ||
lake --version | ||
- name: check {Mathlib, Tactic, Counterexamples, Archive}.lean are up to date | ||
run: lake exe mk_all --check | ||
|
||
- name: build cache | ||
run: | | ||
lake build cache | ||
|
@@ -151,8 +133,20 @@ jobs: | |
run: | | ||
rm -rf .lake/build/lib/Mathlib/ | ||
# Fail quickly if the cache is completely cold, by checking for Mathlib.Init | ||
lake exe cache get Mathlib.Init | ||
lake build --no-build Mathlib.Init && lake exe cache get || echo "No cache for 'Mathlib.Init' available" | ||
lake exe cache get #Mathlib.Init | ||
#lake build --no-build Mathlib.Init && lake exe cache get || echo "No cache for 'Mathlib.Init' available" | ||
- name: update {Mathlib, Tactic, Counterexamples, Archive}.lean | ||
id: mk_all | ||
run: | | ||
if ! lake exe mk_all --check | ||
then | ||
echo "Not all lean files are in the import all files" | ||
echo "mk_all=false" >> "${GITHUB_OUTPUT}" | ||
else | ||
echo "mk_all=true" >> "${GITHUB_OUTPUT}" | ||
fi | ||
- name: build mathlib | ||
id: build | ||
|
@@ -216,6 +210,14 @@ jobs: | |
MATHLIB_CACHE_SAS: ${{ secrets.MATHLIB_CACHE_SAS }} | ||
MATHLIB_CACHE_S3_TOKEN: ${{ secrets.MATHLIB_CACHE_S3_TOKEN }} | ||
|
||
- name: Check {Mathlib, Tactic, Counterexamples, Archive}.lean | ||
run: | | ||
if [ ${{ steps.mk_all.outputs.mk_all }} == "false" ] | ||
then | ||
echo "Please run 'lake exe mk_all' to regenerate the import all files" | ||
exit 1 | ||
fi | ||
- name: check for noisy stdout lines | ||
id: noisy | ||
run: | | ||
|
@@ -276,7 +278,7 @@ jobs: | |
# Output is posted to the zulip topic | ||
# https://leanprover.zulipchat.com/#narrow/stream/345428-mathlib-reviewers/topic/lean4checker | ||
|
||
- name: Post comments for lean-pr-testing branch | ||
- name: Post comments for lean-pr-testing-NNNN and batteries-pr-testing-NNNN branches | ||
if: always() | ||
env: | ||
TOKEN: ${{ secrets.LEAN_PR_TESTING }} | ||
|
@@ -289,7 +291,8 @@ jobs: | |
LINT_OUTCOME: ${{ steps.lint.outcome }} | ||
TEST_OUTCOME: ${{ steps.test.outcome }} | ||
run: | | ||
scripts/lean-pr-testing-comments.sh | ||
scripts/lean-pr-testing-comments.sh lean | ||
scripts/lean-pr-testing-comments.sh batteries | ||
final: | ||
name: Post-CI jobJOB_NAME | ||
|
@@ -300,7 +303,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- id: PR | ||
uses: 8BitJonny/gh-get-current-pr@2.2.0 | ||
uses: 8BitJonny/gh-get-current-pr@3.0.0 | ||
# TODO: this may not work properly if the same commit is pushed to multiple branches: | ||
# https://github.com/8BitJonny/gh-get-current-pr/issues/8 | ||
with: | ||
|
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,9 @@ | ||
version: 2 # Specifies the version of the Dependabot configuration file format | ||
|
||
updates: | ||
# Configuration for dependency updates | ||
- package-ecosystem: "github-actions" # Specifies the ecosystem to check for updates | ||
directory: "/" # Specifies the directory to check for dependencies; "/" means the root directory | ||
schedule: | ||
# Check for updates to GitHub Actions every month | ||
interval: "monthly" |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Autolabel PRs | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
push: | ||
paths: | ||
- scripts/autolabel.lean | ||
- .github/workflows/add_label_from_diff.yaml | ||
|
||
jobs: | ||
add_topic_label: | ||
name: Add topic label | ||
runs-on: ubuntu-latest | ||
# Don't run on forks, where we wouldn't have permissions to add the label anyway. | ||
if: github.repository == 'leanprover-community/mathlib4' | ||
permissions: | ||
issues: write | ||
checks: write | ||
pull-requests: write | ||
contents: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- 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: lake exe autolabel | ||
run: | | ||
# the checkout dance, to avoid a detached head | ||
git checkout master | ||
git checkout - | ||
lake exe autolabel "$NUMBER" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_REPO: ${{ github.repository }} | ||
NUMBER: ${{ github.event.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Bench output summary | ||
|
||
on: | ||
issue_comment: | ||
types: created | ||
|
||
jobs: | ||
Produce_bench_summary: | ||
name: Post summary of benchmarking results | ||
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'Here are the [benchmark results]')) | ||
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@v4 | ||
with: | ||
ref: master | ||
sparse-checkout: | | ||
scripts/bench_summary.lean | ||
- name: Summarize bench output | ||
run: | | ||
{ | ||
cat scripts/bench_summary.lean | ||
printf $'run_cmd BenchAction.addBenchSummaryComment %s "leanprover-community/mathlib4"' "${PR}" | ||
} | | ||
lake env lean --stdin | ||
env: | ||
PR: ${{ github.event.issue.number }} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
Oops, something went wrong.