Skip to content

Commit

Permalink
use julia-actions/cache and cache more (#451)
Browse files Browse the repository at this point in the history
This will hopefully help to speed up CI.
[julia-actions/cache](https://github.com/julia-actions/cache) is a
wrapper around actions/cache.

I added `cache-compiled: "true"`, and I know what I'm doing (or rather
trust people on Slack).
  • Loading branch information
visr authored Jul 25, 2023
1 parent 88fdd47 commit a45765a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,9 @@ jobs:
with:
version: ${{ matrix.julia_version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
- uses: julia-actions/cache@v1
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 }}-
cache-compiled: "true"
- uses: julia-actions/julia-buildpkg@v1
with:
project: core
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,9 @@ jobs:
with:
project: core

- uses: actions/cache@v3
env:
cache-name: cache-artifacts
- uses: julia-actions/cache@v1
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-
cache-compiled: "true"

- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down

0 comments on commit a45765a

Please sign in to comment.