Skip to content

Commit 1264ce7

Browse files
committed
Add caching to CI
1 parent 25906a1 commit 1264ce7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/SnoopCompile.yml

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
- uses: julia-actions/setup-julia@latest
3636
with:
3737
version: ${{ matrix.version }}
38+
arch: ${{ matrix.arch }}
39+
- uses: actions/cache@v2
40+
env:
41+
cache-name: cache-julia-modules
42+
with:
43+
path: ~/.julia
44+
key: ${{ runner.os }}-${{ matrix.version }}-${{ env.cache-name }}
3845

3946
- name: Install dependencies
4047
run: |

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
with:
2727
version: ${{ matrix.version }}
2828
arch: ${{ matrix.arch }}
29+
- uses: actions/cache@v2
30+
env:
31+
cache-name: cache-julia-modules
32+
with:
33+
path: ~/.julia
34+
key: ${{ runner.os }}-${{ matrix.version }}-${{ env.cache-name }}
35+
2936
- uses: julia-actions/julia-buildpkg@latest
3037
- uses: julia-actions/julia-runtest@latest
3138
- uses: julia-actions/julia-uploadcodecov@latest

0 commit comments

Comments
 (0)