From 423f1e998332613dcfb8740085c980dca57f47a0 Mon Sep 17 00:00:00 2001 From: Satoshi Terasaki Date: Fri, 15 Nov 2024 21:31:57 +0900 Subject: [PATCH 1/2] Update julia-actions/cache --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e37f915..d3bccbc 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -40,7 +40,7 @@ jobs: Pkg.Registry.add( RegistrySpec(url = "https://github.com/tensor4all/T4ARegistry.git") )' - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 continue-on-error: ${{ matrix.version == 'nightly' }} From 4994b27609de63bc2825e0bae6a75c4f3dc87308 Mon Sep 17 00:00:00 2001 From: Satoshi Terasaki Date: Fri, 15 Nov 2024 21:32:10 +0900 Subject: [PATCH 2/2] Set permission for julia-actions/cache@v2 --- .github/workflows/CI.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d3bccbc..5327f4a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,6 +11,12 @@ concurrency: # Cancel intermediate builds: only if it is a pull request build. group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}