mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 01:16:54 +08:00
Add cache-name to main example
This patch suggests to add `cache-name` to the main example since most Julia projects test multiple versions in a matrix.
This commit is contained in:
17
README.md
17
README.md
@@ -19,12 +19,19 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version:
|
||||||
|
- '1.6'
|
||||||
|
- '1'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
- uses: julia-actions/cache@v2
|
- uses: julia-actions/cache@v2
|
||||||
- uses: julia-actions/julia-buildpkg@v1
|
with:
|
||||||
- uses: julia-actions/julia-runtest@v1
|
cache-name: 'test-${{ matrix.os }}'
|
||||||
|
- uses: julia-actions/julia-buildpkg@v1
|
||||||
|
- uses: julia-actions/julia-runtest@v1
|
||||||
```
|
```
|
||||||
|
|
||||||
By default all depot directories called out below are cached.
|
By default all depot directories called out below are cached.
|
||||||
|
|||||||
Reference in New Issue
Block a user