Skip to content

Commit 4aa46ab

Browse files
committed
Revert "CI: pin XDG_CACHE_HOME=/runner/root/.cache on self-hosted runners"
This reverts commit ab8907a.
1 parent ab8907a commit 4aa46ab

3 files changed

Lines changed: 1 addition & 35 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@v6
2525

26-
- name: Pin XDG_CACHE_HOME for self-hosted
27-
if: runner.environment == 'self-hosted'
28-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
29-
3026
- name: Install uv
3127
uses: astral-sh/setup-uv@v5
3228

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
fetch-depth: 0
2929
ref: ${{ github.ref_name }}
3030

31-
- name: Pin XDG_CACHE_HOME for self-hosted
32-
if: runner.environment == 'self-hosted'
33-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
34-
3531
- uses: actions/setup-python@v6
3632
with:
3733
python-version: "3.12"

.github/workflows/tests.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ permissions:
1212

1313
env:
1414
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
15-
# On self-hosted runners, the runner work dir lives on /runner which
16-
# is a separate filesystem from /root — keep uv's cache on the same
17-
# fs as the work dir so hard-linking into venvs succeeds (uv falls
18-
# back to copying across fs boundaries, which is much slower). The
19-
# "if" guards below no-op this on GitHub-hosted runners where the
20-
# path doesn't exist.
2115

2216
concurrency:
2317
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -32,10 +26,6 @@ jobs:
3226
steps:
3327
- uses: actions/checkout@v6
3428

35-
- name: Pin XDG_CACHE_HOME for self-hosted
36-
if: runner.environment == 'self-hosted'
37-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
38-
3929
- name: Setup Python
4030
uses: actions/setup-python@v6
4131
with:
@@ -74,10 +64,6 @@ jobs:
7464
steps:
7565
- uses: actions/checkout@v6
7666

77-
- name: Pin XDG_CACHE_HOME for self-hosted
78-
if: runner.environment == 'self-hosted'
79-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
80-
8167
- name: Discover standard test files
8268
id: set-matrix
8369
run: |
@@ -125,15 +111,11 @@ jobs:
125111
steps:
126112
- uses: actions/checkout@v6
127113

128-
- name: Pin XDG_CACHE_HOME for self-hosted
129-
if: runner.environment == 'self-hosted'
130-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
131-
132114
- name: Setup Python
133115
uses: actions/setup-python@v6
134116
with:
135117
python-version: ${{ matrix.target.python_version }}
136-
118+
137119
- name: Install uv
138120
uses: astral-sh/setup-uv@v8.0.0
139121
with:
@@ -258,10 +240,6 @@ jobs:
258240
steps:
259241
- uses: actions/checkout@v6
260242

261-
- name: Pin XDG_CACHE_HOME for self-hosted
262-
if: runner.environment == 'self-hosted'
263-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
264-
265243
- name: Discover live integration test files
266244
id: set-matrix
267245
run: |
@@ -312,10 +290,6 @@ jobs:
312290
steps:
313291
- uses: actions/checkout@v6
314292

315-
- name: Pin XDG_CACHE_HOME for self-hosted
316-
if: runner.environment == 'self-hosted'
317-
run: echo "XDG_CACHE_HOME=/runner/root/.cache" >> "$GITHUB_ENV"
318-
319293
- name: Setup Python
320294
uses: actions/setup-python@v6
321295
with:

0 commit comments

Comments
 (0)