From 0e89a7ed8aed349247414c101aff1c9a3a0ff138 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 2 May 2024 16:52:33 -0400 Subject: [PATCH] CI: Update actions --- .github/workflows/ci.yml | 24 +++++++++++------------- .github/workflows/ci_julia_nightly.yml | 25 +++++++++++-------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a413ecd..208a506 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,5 @@ name: CI + on: pull_request: branches: @@ -7,6 +8,12 @@ on: branches: - master tags: '*' + +# 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 }} @@ -43,25 +50,16 @@ jobs: # os: "ubuntu-latest" # version: "nightly" steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 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@v1 - 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@v2 env: CODECOV_TOKEN: 82aae245-ad5c-41ac-9e30-b64617ce25b0 with: diff --git a/.github/workflows/ci_julia_nightly.yml b/.github/workflows/ci_julia_nightly.yml index 2331cc1..db346cc 100644 --- a/.github/workflows/ci_julia_nightly.yml +++ b/.github/workflows/ci_julia_nightly.yml @@ -1,4 +1,5 @@ name: CI (Julia nightly) + on: pull_request: branches: @@ -7,6 +8,12 @@ on: branches: - master tags: '*' + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test_julia_nightly: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} @@ -26,26 +33,16 @@ jobs: exclude: - os: macOS-latest arch: x86 # 32-bit Julia binaries are not available on macOS - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 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@v1 - 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@v2 env: CODECOV_TOKEN: 82aae245-ad5c-41ac-9e30-b64617ce25b0 with: