Skip to content

Commit d03fe2f

Browse files
committed
caching artifacts dir in CI
1 parent 0ebb54a commit d03fe2f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
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-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ julia: 1.0
55
os: linux
66
notifications:
77
email: false
8-
8+
cache:
9+
directories:
10+
- $HOME/.julia/artifacts
911
env:
1012
- DOCUMENTER_DEBUG=true
1113
jobs:

0 commit comments

Comments
 (0)