Skip to content

Commit

Permalink
use restore and skip again
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Jul 3, 2024
1 parent 7cb2dde commit ce89ae8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/actions/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ runs:
with:
cache-source: root-ccache
cache-target: /root/.ccache
skip-extraction: ${{ steps.cache.outputs.cache-hit }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache
uses: actions/cache@v3
- name: Restore cache
uses: actions/cache/restore@v4
id: cache
with:
path: |
Expand All @@ -87,6 +87,7 @@ jobs:
with:
cache-source: root-ccache
cache-target: /root/.ccache
skip-extraction: true

- name: Build 'Autoware'
if: steps.author-check.outputs.author-found == 'true' || ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache
uses: actions/cache@v3
id: cache
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: |
root-ccache
Expand All @@ -84,6 +83,7 @@ jobs:
with:
cache-source: root-ccache
cache-target: /root/.ccache
skip-extraction: true

- name: Build 'Autoware'
if: steps.author-check.outputs.author-found == 'true' || ${{ github.event_name == 'workflow_dispatch' }}
Expand Down

0 comments on commit ce89ae8

Please sign in to comment.