Skip to content

Commit 413a98e

Browse files
Merge pull request #3879 from ChrisRackauckas-Claude/fix-self-hosted-cache
Fix cache issues with self-hosted runners
2 parents b9220f0 + d7f7ed0 commit 413a98e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/Tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ jobs:
4545
with:
4646
julia-version: "${{ matrix.version }}"
4747
group: "${{ matrix.group }}"
48+
# Disable cache for self-hosted runners since they persist between runs
49+
# Set USE_SELF_HOSTED repository variable to 'true' when using self-hosted runners
50+
self-hosted: ${{ vars.USE_SELF_HOSTED == 'true' }}
51+
cache: ${{ vars.USE_SELF_HOSTED != 'true' }}
4852
secrets: "inherit"

0 commit comments

Comments
 (0)