Skip to content

Commit

Permalink
CI: use julia-actions/cache (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored May 22, 2023
1 parent ce6121a commit 61f48a0
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,8 @@ jobs:
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Cache artifacts
uses: actions/cache@v3
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 }}-
- name: "Cache artifacts"
uses: julia-actions/cache@v1
- name: "Build package"
uses: julia-actions/julia-buildpkg@latest
- name: "Run tests"
Expand Down Expand Up @@ -100,16 +91,7 @@ jobs:
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: actions/cache@v3
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@v1
- uses: julia-actions/julia-buildpkg@latest
- name: "Install package"
run: |
Expand Down

0 comments on commit 61f48a0

Please sign in to comment.