From 56940a789cf85c8936060807472f88562da0ec94 Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Thu, 1 Feb 2024 10:02:40 -0500 Subject: [PATCH] Use julia-actions cache --- .github/workflows/ci.yml | 18 +++++++----------- .github/workflows/lookahead.yml | 16 ++++++---------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23b4b587cd..1a8877f31f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: name: ci ${{ matrix.version }} - ${{ matrix.os }} @@ -25,24 +30,15 @@ jobs: - x64 steps: - uses: actions/checkout@v4 + - uses: julia-actions/cache@v1 - uses: julia-actions/setup-julia@v1 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/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v3 with: file: lcov.info token: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/lookahead.yml b/.github/workflows/lookahead.yml index 57373f71ea..1682396460 100644 --- a/.github/workflows/lookahead.yml +++ b/.github/workflows/lookahead.yml @@ -14,6 +14,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: name: ci ${{ matrix.version }} - ${{ matrix.os }} @@ -30,20 +35,11 @@ jobs: - x64 steps: - uses: actions/checkout@v4 + - uses: julia-actions/cache@v1 - uses: julia-actions/setup-julia@v1 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 }}- - name: Instantiate test env run: | julia --project=test -e "using Pkg; Pkg.develop(path=\".\"); Pkg.instantiate()"