Skip to content

Commit 4ac3380

Browse files
committed
caching artifacts dir in CI
1 parent 45d3fc8 commit 4ac3380

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/UnitTest.yml

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ jobs:
2525
with:
2626
version: ${{ matrix.julia-version }}
2727

28+
- name: Cache artifacts
29+
uses: actions/cache@v1
30+
env:
31+
cache-name: cache-artifacts
32+
with:
33+
path: ~/.julia/artifacts
34+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35+
restore-keys: |
36+
${{ runner.os }}-test-${{ env.cache-name }}-
37+
${{ runner.os }}-test-
38+
${{ runner.os }}-
39+
2840
- name: "Unit Test"
2941
uses: julia-actions/julia-runtest@master
3042

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ julia:
77
- 1.0
88
notifications:
99
email: false
10+
cache:
11+
directories:
12+
- $HOME/.julia/artifacts
1013

1114
after_success:
1215
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

0 commit comments

Comments
 (0)