Skip to content

Commit 952008d

Browse files
authored
Merge pull request #166 from JuliaMath/inkydragon-patch-1
Update CI.yml
2 parents dd20a88 + 26a129d commit 952008d

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
name: CI
2+
23
on:
34
pull_request:
45
push:
56
branches:
67
- master
78
tags: '*'
9+
10+
concurrency:
11+
# Skip intermediate builds: always.
12+
# Cancel intermediate builds: only if it is a pull request build.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
816
jobs:
917
test:
1018
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1119
runs-on: ${{ matrix.os }}
20+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
21+
actions: write
22+
contents: read
1223
strategy:
1324
fail-fast: false
1425
matrix:
@@ -27,19 +38,11 @@ jobs:
2738
with:
2839
version: ${{ matrix.version }}
2940
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v4
31-
env:
32-
cache-name: cache-artifacts
33-
with:
34-
path: ~/.julia/artifacts
35-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36-
restore-keys: |
37-
${{ runner.os }}-test-${{ env.cache-name }}-
38-
${{ runner.os }}-test-
39-
${{ runner.os }}-
41+
- uses: julia-actions/cache@v2
4042
- uses: julia-actions/julia-buildpkg@v1
4143
- uses: julia-actions/julia-runtest@v1
4244
- uses: julia-actions/julia-processcoverage@v1
4345
- uses: codecov/codecov-action@v4
4446
with:
4547
file: lcov.info
48+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)