From 86ccaed3990329acbb6e7ec46ca877924f61ff92 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Mon, 24 Nov 2025 14:29:26 +0400 Subject: [PATCH] Use Julia actions cache in CI --- .github/workflows/ci.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a52e019..e0e8807 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,12 @@ on: - 'LICENSE' - 'README.md' - '.github/workflows/TagBot.yml' + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: pre_job: # continue-on-error: true # Uncomment once integration is finished @@ -32,7 +38,7 @@ jobs: test: needs: pre_job if: needs.pre_job.outputs.should_skip != 'true' - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -44,24 +50,12 @@ jobs: - ubuntu-latest # - macOS-latest # FastTransforms.jl is broken on macOS-latest - windows-latest - arch: - - x64 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@v4 - 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