Skip to content

Commit 351666b

Browse files
authored
Add julia-actions/cache to CI (#331)
1 parent b5c6dfc commit 351666b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
1116
concurrency:
1217
# group by workflow and ref; the last slightly strange component ensures that for pull
1318
# requests, we limit to 1 concurrent job, but for the master branch we don't

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
1116
concurrency:
1217
# group by workflow and ref; the last slightly strange component ensures that for pull
1318
# requests, we limit to 1 concurrent job, but for the master branch we don't
@@ -67,6 +72,7 @@ jobs:
6772
uses: julia-actions/setup-julia@v2
6873
with:
6974
version: ${{ matrix.julia-version }}
75+
- uses: julia-actions/cache@v2
7076
- uses: julia-actions/julia-runtest@v1
7177
with:
7278
depwarn: error

0 commit comments

Comments
 (0)