Skip to content

Commit 624eaa9

Browse files
marcelolynchclaude
andcommitted
chore(ci): wire MATHLIB_CACHE_BASE_URL from a repository variable
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent eb097a9 commit 624eaa9

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/build_template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ env:
4848
# are valid by-products of the Mathlib build. Build artifacts fetched from Lake's cache do
4949
# not necessarily satisfy this property.
5050
LAKE_NO_CACHE: true
51+
# Read-base override for the cache tool: normally unset, so reads go to
52+
# Azure. An operator sets the repository variable to move cache read
53+
# traffic to another host, and clears it to move the traffic back.
54+
MATHLIB_CACHE_BASE_URL: ${{ vars.MATHLIB_CACHE_BASE_URL }}
5155

5256
jobs:
5357
build:

.github/workflows/lake_cache_shadow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ env:
104104
SHADOW_SCOPE: mathlib4-master-shadow
105105
# NOTE: STAGE_TARGETS is set per-job (not here) from the `targets` input, so
106106
# it can be overridden per dispatch — see the `build_and_stage`/`consume` env.
107+
# Read-base override for the mathlib cache tool (the warm-start `cache get`);
108+
# Lake's own cache ignores it. Normally unset, so reads go to Azure.
109+
MATHLIB_CACHE_BASE_URL: ${{ vars.MATHLIB_CACHE_BASE_URL }}
107110

108111
jobs:
109112
build_and_stage:

.github/workflows/olean_report.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ concurrency:
2020
permissions:
2121
contents: read
2222

23+
env:
24+
# Read-base override for the cache tool: normally unset, so reads go to
25+
# Azure. An operator sets the repository variable to move cache read
26+
# traffic to another host, and clears it to move the traffic back.
27+
MATHLIB_CACHE_BASE_URL: ${{ vars.MATHLIB_CACHE_BASE_URL }}
28+
2329
jobs:
2430
report:
2531
name: Prepare olean report

.github/workflows/remove_deprecated_decls.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ on:
2121
default: false
2222
type: boolean
2323

24+
env:
25+
# Read-base override for the cache tool: normally unset, so reads go to
26+
# Azure. An operator sets the repository variable to move cache read
27+
# traffic to another host, and clears it to move the traffic back.
28+
MATHLIB_CACHE_BASE_URL: ${{ vars.MATHLIB_CACHE_BASE_URL }}
29+
2430
jobs:
2531
build:
2632
name: Remove outdated deprecated declarations

0 commit comments

Comments
 (0)