Skip to content

Commit c613685

Browse files
authored
Merge pull request #116 from JuliaLang/ci-caching
Use julia-actions/cache in CI
2 parents 9c5d73a + 20e2ce7 commit c613685

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414
# Cancel intermediate builds: only pull request builds
1515
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
1616
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
17+
1718
jobs:
1819
test:
1920
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -39,17 +40,7 @@ jobs:
3940
with:
4041
version: ${{ matrix.version }}
4142
arch: ${{ matrix.arch }}
42-
- uses: actions/cache@v4
43-
env:
44-
cache-name: cache-artifacts
45-
with:
46-
path: ~/.julia/artifacts
47-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
48-
restore-keys: |
49-
${{ runner.os }}-test-${{ env.cache-name }}-
50-
${{ runner.os }}-test-${{ matrix.os }}
51-
${{ runner.os }}-
52-
- uses: julia-actions/julia-buildpkg@v1
43+
- uses: julia-actions/cache@v2
5344
- uses: julia-actions/julia-runtest@v1
5445
env:
5546
JULIA_DISTRIBUTED_TESTING_STANDALONE: 1
@@ -58,6 +49,7 @@ jobs:
5849
with:
5950
files: lcov.info
6051
token: ${{ secrets.CODECOV_TOKEN }}
52+
6153
docs:
6254
runs-on: ubuntu-latest
6355
steps:

0 commit comments

Comments
 (0)