Skip to content

Commit

Permalink
Add caching for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 authored Jan 27, 2024
1 parent 10e8fc1 commit c289fb1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/Runtests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Runtests
on: [push, pull_request]
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -13,6 +13,16 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-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/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
with:
Expand All @@ -21,4 +31,4 @@ jobs:
- uses: codecov/codecov-action@v3
with:
file: lcov.info


0 comments on commit c289fb1

Please sign in to comment.