Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 5 additions & 5 deletions .github/build.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
# Recall that on the `leanprover-community/mathlib4-nightly-testing` repository,
# we don't maintain a `master` branch at all.
# For PRs and pushes to this repository, we will use `nightly-testing` instead.
ref: ${{ github.repository == 'leanprover-community/mathlib4-nightly-testing' && 'nightly-testing' || 'master' }}
ref: modulize # TODO
path: master-branch

# Checkout the PR branch into a subdirectory
Expand Down Expand Up @@ -463,7 +463,7 @@ jobs:
id: test
run: |
cd pr-branch
lake --iofail test
lake test
- name: end gh-problem-match-wrap for test step
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
with:
Expand Down Expand Up @@ -590,13 +590,13 @@ jobs:
- name: verify that everything was available in the cache
run: |
echo "::group::{verify Mathlib cache}"
lake build --no-build -v Mathlib
lake build --no-build --rehash -v Mathlib
echo "::endgroup::"
echo "::group::{verify Archive cache}"
lake build --no-build -v Archive
lake build --no-build --rehash -v Archive
echo "::endgroup::"
echo "::group::{verify Counterexamples cache}"
lake build --no-build -v Counterexamples
lake build --no-build --rehash -v Counterexamples
echo "::endgroup::"

- name: check declarations in db files
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
# Recall that on the `leanprover-community/mathlib4-nightly-testing` repository,
# we don't maintain a `master` branch at all.
# For PRs and pushes to this repository, we will use `nightly-testing` instead.
ref: ${{ github.repository == 'leanprover-community/mathlib4-nightly-testing' && 'nightly-testing' || 'master' }}
ref: modulize # TODO
path: master-branch

# Checkout the PR branch into a subdirectory
Expand Down Expand Up @@ -473,7 +473,7 @@ jobs:
id: test
run: |
cd pr-branch
lake --iofail test
lake test
- name: end gh-problem-match-wrap for test step
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
with:
Expand Down Expand Up @@ -600,13 +600,13 @@ jobs:
- name: verify that everything was available in the cache
run: |
echo "::group::{verify Mathlib cache}"
lake build --no-build -v Mathlib
lake build --no-build --rehash -v Mathlib
echo "::endgroup::"
echo "::group::{verify Archive cache}"
lake build --no-build -v Archive
lake build --no-build --rehash -v Archive
echo "::endgroup::"
echo "::group::{verify Counterexamples cache}"
lake build --no-build -v Counterexamples
lake build --no-build --rehash -v Counterexamples
echo "::endgroup::"

- name: check declarations in db files
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
# Recall that on the `leanprover-community/mathlib4-nightly-testing` repository,
# we don't maintain a `master` branch at all.
# For PRs and pushes to this repository, we will use `nightly-testing` instead.
ref: ${{ github.repository == 'leanprover-community/mathlib4-nightly-testing' && 'nightly-testing' || 'master' }}
ref: modulize # TODO
path: master-branch

# Checkout the PR branch into a subdirectory
Expand Down Expand Up @@ -480,7 +480,7 @@ jobs:
id: test
run: |
cd pr-branch
lake --iofail test
lake test
- name: end gh-problem-match-wrap for test step
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
with:
Expand Down Expand Up @@ -607,13 +607,13 @@ jobs:
- name: verify that everything was available in the cache
run: |
echo "::group::{verify Mathlib cache}"
lake build --no-build -v Mathlib
lake build --no-build --rehash -v Mathlib
echo "::endgroup::"
echo "::group::{verify Archive cache}"
lake build --no-build -v Archive
lake build --no-build --rehash -v Archive
echo "::endgroup::"
echo "::group::{verify Counterexamples cache}"
lake build --no-build -v Counterexamples
lake build --no-build --rehash -v Counterexamples
echo "::endgroup::"

- name: check declarations in db files
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build_fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ permissions:

jobs:
build:
if: github.event.pull_request.head.repo.fork
if: github.event.pull_request.head.repo.fork FORK_CONDITIONFORK_CONDITION github.repository != 'leanprover-community/mathlib4-nightly-testing'
name: Build (fork)
runs-on: pr
outputs:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
# Recall that on the `leanprover-community/mathlib4-nightly-testing` repository,
# we don't maintain a `master` branch at all.
# For PRs and pushes to this repository, we will use `nightly-testing` instead.
ref: ${{ github.repository == 'leanprover-community/mathlib4-nightly-testing' && 'nightly-testing' || 'master' }}
ref: modulize # TODO
path: master-branch

# Checkout the PR branch into a subdirectory
Expand Down Expand Up @@ -477,7 +477,7 @@ jobs:
id: test
run: |
cd pr-branch
lake --iofail test
lake test
- name: end gh-problem-match-wrap for test step
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
with:
Expand Down Expand Up @@ -547,7 +547,7 @@ jobs:

post_steps:
name: Post-Build Step (fork)
if: github.event.pull_request.head.repo.fork
if: github.event.pull_request.head.repo.fork FORK_CONDITIONFORK_CONDITION github.repository != 'leanprover-community/mathlib4-nightly-testing'
needs: [build]
runs-on: ubuntu-latest # Note these steps run on disposable GitHub runners, so no landrun sandboxing is needed.
steps:
Expand Down Expand Up @@ -604,13 +604,13 @@ jobs:
- name: verify that everything was available in the cache
run: |
echo "::group::{verify Mathlib cache}"
lake build --no-build -v Mathlib
lake build --no-build --rehash -v Mathlib
echo "::endgroup::"
echo "::group::{verify Archive cache}"
lake build --no-build -v Archive
lake build --no-build --rehash -v Archive
echo "::endgroup::"
echo "::group::{verify Counterexamples cache}"
lake build --no-build -v Counterexamples
lake build --no-build --rehash -v Counterexamples
echo "::endgroup::"

- name: check declarations in db files
Expand Down Expand Up @@ -676,7 +676,7 @@ jobs:

style_lint:
name: Lint style (fork)
if: github.event.pull_request.head.repo.fork
if: github.event.pull_request.head.repo.fork FORK_CONDITIONFORK_CONDITION github.repository != 'leanprover-community/mathlib4-nightly-testing'
runs-on: ubuntu-latest
steps:
- uses: leanprover-community/lint-style-action@a7e7428fa44f9635d6eb8e01919d16fd498d387a # 2025-08-18
Expand All @@ -687,7 +687,7 @@ jobs:

final:
name: Post-CI job (fork)
if: github.event.pull_request.head.repo.fork
if: github.event.pull_request.head.repo.fork FORK_CONDITIONFORK_CONDITION github.repository != 'leanprover-community/mathlib4-nightly-testing'
needs: [style_lint, build, post_steps]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mk_build_yml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ on:

name: continuous integration (mathlib forks)
EOF
include "github.event.pull_request.head.sha" pr "github.event.pull_request.head.repo.fork" " (fork)" ubuntu-latest
include "github.event.pull_request.head.sha" pr "github.event.pull_request.head.repo.fork && github.repository != 'leanprover-community\/mathlib4-nightly-testing'" " (fork)" ubuntu-latest
}

include() {
Expand Down
4 changes: 2 additions & 2 deletions Cache/IO.lean
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def CURLBIN :=

/-- leantar version at https://github.com/digama0/leangz -/
def LEANTARVERSION :=
"0.1.16-pre3"
"0.1.16-pre4"

def EXE := if System.Platform.isWindows then ".exe" else ""

Expand All @@ -90,7 +90,7 @@ def getLeanTar : IO String := do
/-- Bump this number to invalidate the cache, in case the existing hashing inputs are insufficient.
It is not a global counter, and can be reset to 0 as long as the lean githash or lake manifest has
changed since the last time this counter was touched. -/
def rootHashGeneration : UInt64 := 3
def rootHashGeneration : UInt64 := 4

/--
`CacheM` stores the following information:
Expand Down
Loading
Loading