Skip to content

Commit

Permalink
feat(ci): save cache on no-cuda jobs and restore cache only on `cud…
Browse files Browse the repository at this point in the history
  • Loading branch information
youtalk authored Jul 4, 2024
1 parent 36a88ee commit 6fc986e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/actions/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ runs:
shell: bash

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ inputs.name == 'no-cuda' }}
id: cache
with:
path: |
Expand All @@ -45,8 +46,19 @@ runs:
cache-${{ inputs.platform }}-${{ inputs.name }}-
cache-${{ inputs.platform }}-
- name: Restore cache
uses: actions/cache/restore@v4
if: ${{ inputs.name != 'no-cuda' }}
with:
path: |
root-ccache
key: cache-${{ matrix.platform }}-${{ matrix.name }}-${{ hashFiles('autoware.repos') }}
restore-keys: |
cache-${{ matrix.platform }}-${{ matrix.name }}-
cache-${{ matrix.platform }}-
- name: Inject cache into docker
uses: reproducible-containers/[email protected].0
uses: reproducible-containers/[email protected].2
with:
cache-map: |
{
Expand Down

0 comments on commit 6fc986e

Please sign in to comment.