From bcc192573882d1808e09d7973831f34f06a825d0 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 2 Oct 2024 12:37:49 +0200 Subject: [PATCH 1/2] Use julia-actions/cache --- .github/workflows/ci.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d85a445..89532d18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,16 +28,7 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 From 0292015dc81a2ebbf497142474755dcf82a2afdb Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 2 Oct 2024 12:45:32 +0200 Subject: [PATCH 2/2] Add permission for deleting caches --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89532d18..a990d0a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,10 @@ jobs: - windows-latest arch: - x64 + # needed to allow julia-actions/cache to delete old caches that it has created + permissions: + actions: write + contents: read steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1