Skip to content

Commit ee03000

Browse files
committed
CI now uses julia-actions/cache
1 parent 9f951b5 commit ee03000

1 file changed

Lines changed: 5 additions & 50 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,7 @@ jobs:
2323
with:
2424
version: ${{ matrix.version }}
2525
arch: ${{ matrix.arch }}
26-
- uses: actions/cache@v2
27-
env:
28-
cache-name: cache-artifacts
29-
with:
30-
path: ~/.julia/artifacts
31-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32-
restore-keys: |
33-
${{ runner.os }}-test-${{ env.cache-name }}-
34-
${{ runner.os }}-test-
35-
${{ runner.os }}-
26+
- uses: julia-actions/cache@v2
3627
- uses: julia-actions/julia-buildpkg@v1
3728
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl poisson.jl validation.jl elasticity.jl
3829
tutorials_set_2:
@@ -53,16 +44,7 @@ jobs:
5344
with:
5445
version: ${{ matrix.version }}
5546
arch: ${{ matrix.arch }}
56-
- uses: actions/cache@v2
57-
env:
58-
cache-name: cache-artifacts
59-
with:
60-
path: ~/.julia/artifacts
61-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
62-
restore-keys: |
63-
${{ runner.os }}-test-${{ env.cache-name }}-
64-
${{ runner.os }}-test-
65-
${{ runner.os }}-
47+
- uses: julia-actions/cache@v2
6648
- uses: julia-actions/julia-buildpkg@v1
6749
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl p_laplacian.jl hyperelasticity.jl dg_discretization.jl fsi_tutorial.jl
6850
tutorials_set_3:
@@ -83,16 +65,7 @@ jobs:
8365
with:
8466
version: ${{ matrix.version }}
8567
arch: ${{ matrix.arch }}
86-
- uses: actions/cache@v2
87-
env:
88-
cache-name: cache-artifacts
89-
with:
90-
path: ~/.julia/artifacts
91-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
92-
restore-keys: |
93-
${{ runner.os }}-test-${{ env.cache-name }}-
94-
${{ runner.os }}-test-
95-
${{ runner.os }}-
68+
- uses: julia-actions/cache@v2
9669
- uses: julia-actions/julia-buildpkg@v1
9770
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl darcy.jl inc_navier_stokes.jl stokes.jl poisson_dev_fe.jl emscatter.jl
9871
tutorials_set_4:
@@ -113,16 +86,7 @@ jobs:
11386
with:
11487
version: ${{ matrix.version }}
11588
arch: ${{ matrix.arch }}
116-
- uses: actions/cache@v2
117-
env:
118-
cache-name: cache-artifacts
119-
with:
120-
path: ~/.julia/artifacts
121-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
122-
restore-keys: |
123-
${{ runner.os }}-test-${{ env.cache-name }}-
124-
${{ runner.os }}-test-
125-
${{ runner.os }}-
89+
- uses: julia-actions/cache@v2
12690
- uses: julia-actions/julia-buildpkg@v1
12791
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl isotropic_damage.jl validation_DrWatson.jl interpolation_fe.jl transient_linear.jl transient_nonlinear.jl TopOptEMFocus.jl
12892
tutorials_mpi:
@@ -143,16 +107,7 @@ jobs:
143107
with:
144108
version: ${{ matrix.version }}
145109
arch: ${{ matrix.arch }}
146-
- uses: actions/cache@v2
147-
env:
148-
cache-name: cache-artifacts
149-
with:
150-
path: ~/.julia/artifacts
151-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
152-
restore-keys: |
153-
${{ runner.os }}-test-${{ env.cache-name }}-
154-
${{ runner.os }}-test-
155-
${{ runner.os }}-
110+
- uses: julia-actions/cache@v2
156111
- uses: julia-actions/julia-buildpkg@v1
157112
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests_mpi.jl
158113
docs:

0 commit comments

Comments
 (0)