|
|
@ -35,9 +35,9 @@ If you are using separate jobs to create and save your cache(s) to be reused by
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache/restore@v3
|
|
|
|
- uses: actions/cache/restore@v4
|
|
|
|
id: cache
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: path/to/dependencies
|
|
|
|
path: path/to/dependencies
|
|
|
@ -64,12 +64,12 @@ In case of multi-module projects, where the built artifact of one project needs
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: /build-parent-module.sh
|
|
|
|
run: /build-parent-module.sh
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache/save@v3
|
|
|
|
- uses: actions/cache/save@v4
|
|
|
|
id: cache
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: path/to/dependencies
|
|
|
|
path: path/to/dependencies
|
|
|
@ -80,9 +80,9 @@ steps:
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache/restore@v3
|
|
|
|
- uses: actions/cache/restore@v4
|
|
|
|
id: cache
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: path/to/dependencies
|
|
|
|
path: path/to/dependencies
|
|
|
@ -107,9 +107,9 @@ To fail if there is no cache hit for the primary key, leave `restore-keys` empty
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache/restore@v3
|
|
|
|
- uses: actions/cache/restore@v4
|
|
|
|
id: cache
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: path/to/dependencies
|
|
|
|
path: path/to/dependencies
|
|
|
|