Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into hilbert
Browse files Browse the repository at this point in the history
  • Loading branch information
FMLJohn committed Dec 2, 2024
2 parents 1ee7ee6 + de7196a commit fe4cf0e
Show file tree
Hide file tree
Showing 1,434 changed files with 38,446 additions and 17,784 deletions.
15 changes: 14 additions & 1 deletion .github/build.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
### NB: and regenerate those files by manually running
### NB: .github/workflows/mk_build_yml.sh

env:
# Disable Lake's automatic fetching of cloud builds.
# Lake's cache is currently incompatible with Mathlib's `lake exe cache`.
# This is because Mathlib's Cache assumes all build aritfacts present in the build directory
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
# not necessarily satisfy this property.
LAKE_NO_CACHE: true

jobs:
# Cancels previous runs of jobs in this file
cancel:
Expand Down Expand Up @@ -121,6 +129,7 @@ jobs:
- name: prune ProofWidgets .lake
run: |
lake build proofwidgets:release
# 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.
Expand Down Expand Up @@ -156,6 +165,10 @@ jobs:
run: |
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
- name: print the sizes of the oleans
run: |
du .lake/build/lib/Mathlib || echo "This code should be unreachable"
- name: upload cache
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
# but not if any earlier step failed or was cancelled.
Expand Down Expand Up @@ -266,7 +279,7 @@ jobs:
with:
linters: gcc
run:
lake test
lake --iofail test

- name: check for unused imports
id: shake
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ 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
directories:
- "/.github/*" # covers `build.in.yml` as well, which is not in `.github/workflows/` because it shouldn't be run in CI.
schedule:
# Check for updates to GitHub Actions every month
interval: "monthly"
1 change: 1 addition & 0 deletions .github/workflows/PR_summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
build:
name: "post-or-update-summary-comment"
runs-on: ubuntu-latest

steps:
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/add_label_from_comment.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/add_label_from_review.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/add_label_from_review_comment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/bench_summary_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
{
cat scripts/bench_summary.lean
printf $'run_cmd BenchAction.addBenchSummaryComment %s "leanprover-community/mathlib4"' "${PR}"
printf $'run_cmd BenchAction.addBenchSummaryComment %s "leanprover-community/mathlib4" %s' "${PR}" "${{ github.run_id }}"
} |
lake env lean --stdin
env:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ on:

name: continuous integration (staging)

env:
# Disable Lake's automatic fetching of cloud builds.
# Lake's cache is currently incompatible with Mathlib's `lake exe cache`.
# This is because Mathlib's Cache assumes all build aritfacts present in the build directory
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
# not necessarily satisfy this property.
LAKE_NO_CACHE: true

jobs:
# Cancels previous runs of jobs in this file
cancel:
Expand Down Expand Up @@ -131,6 +139,7 @@ jobs:
- name: prune ProofWidgets .lake
run: |
lake build proofwidgets:release
# 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.
Expand Down Expand Up @@ -166,6 +175,10 @@ jobs:
run: |
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
- name: print the sizes of the oleans
run: |
du .lake/build/lib/Mathlib || echo "This code should be unreachable"
- name: upload cache
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
# but not if any earlier step failed or was cancelled.
Expand Down Expand Up @@ -276,7 +289,7 @@ jobs:
with:
linters: gcc
run:
lake test
lake --iofail test

- name: check for unused imports
id: shake
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ on:

name: continuous integration

env:
# Disable Lake's automatic fetching of cloud builds.
# Lake's cache is currently incompatible with Mathlib's `lake exe cache`.
# This is because Mathlib's Cache assumes all build aritfacts present in the build directory
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
# not necessarily satisfy this property.
LAKE_NO_CACHE: true

jobs:
# Cancels previous runs of jobs in this file
cancel:
Expand Down Expand Up @@ -138,6 +146,7 @@ jobs:
- name: prune ProofWidgets .lake
run: |
lake build proofwidgets:release
# 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.
Expand Down Expand Up @@ -173,6 +182,10 @@ jobs:
run: |
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
- name: print the sizes of the oleans
run: |
du .lake/build/lib/Mathlib || echo "This code should be unreachable"
- name: upload cache
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
# but not if any earlier step failed or was cancelled.
Expand Down Expand Up @@ -283,7 +296,7 @@ jobs:
with:
linters: gcc
run:
lake test
lake --iofail test

- name: check for unused imports
id: shake
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/build_fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ on:

name: continuous integration (mathlib forks)

env:
# Disable Lake's automatic fetching of cloud builds.
# Lake's cache is currently incompatible with Mathlib's `lake exe cache`.
# This is because Mathlib's Cache assumes all build aritfacts present in the build directory
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
# not necessarily satisfy this property.
LAKE_NO_CACHE: true

jobs:
# Cancels previous runs of jobs in this file
cancel:
Expand Down Expand Up @@ -135,6 +143,7 @@ jobs:
- name: prune ProofWidgets .lake
run: |
lake build proofwidgets:release
# 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.
Expand Down Expand Up @@ -170,6 +179,10 @@ jobs:
run: |
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
- name: print the sizes of the oleans
run: |
du .lake/build/lib/Mathlib || echo "This code should be unreachable"
- name: upload cache
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
# but not if any earlier step failed or was cancelled.
Expand Down Expand Up @@ -280,7 +293,7 @@ jobs:
with:
linters: gcc
run:
lake test
lake --iofail test

- name: check for unused imports
id: shake
Expand Down
Loading

0 comments on commit fe4cf0e

Please sign in to comment.