Skip to content

Commit

Permalink
Use julia cache in CI (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Dec 20, 2024
1 parent 3fe9243 commit c4e85f4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
- 'README.md'
- '.github/workflows/TagBot.yml'

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
Expand Down Expand Up @@ -50,16 +55,7 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
Expand Down

0 comments on commit c4e85f4

Please sign in to comment.