Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): save cache on no-cuda jobs and restore cache only on cuda jobs #4945

Merged
merged 3 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
xmfcx marked this conversation as resolved.
Show resolved Hide resolved
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
Loading