diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 61f453f7c2..67c6806708 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -45,4 +45,8 @@ jobs: with: julia-version: "${{ matrix.version }}" group: "${{ matrix.group }}" + # Disable cache for self-hosted runners since they persist between runs + # Set USE_SELF_HOSTED repository variable to 'true' when using self-hosted runners + self-hosted: ${{ vars.USE_SELF_HOSTED == 'true' }} + cache: ${{ vars.USE_SELF_HOSTED != 'true' }} secrets: "inherit"