File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,20 @@ jobs:
51
51
- name : Set Ccache directory
52
52
run : echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
53
53
54
- - name : Ccache cache
55
- uses : actions/cache@v3
54
+ - name : Restore Ccache cache
55
+ uses : actions/cache/restore @v3
56
56
with :
57
57
path : ${{ env.CCACHE_DIR }}
58
- key : ${{ github.job }}-ccache-cache- ${{ github.run_id }}
59
- restore-keys : ${{ github.job }}-ccache-cache
58
+ key : ${{ github.job }}-ccache-${{ github.run_id }}
59
+ restore-keys : ${{ github.job }}-ccache-
60
60
61
61
- name : CI script
62
62
run : ./ci/test_run_all.sh
63
+
64
+ - name : Save Ccache cache
65
+ uses : actions/cache/save@v3
66
+ if : github.event_name != 'pull_request'
67
+ with :
68
+ path : ${{ env.CCACHE_DIR }}
69
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
70
+ key : ${{ github.job }}-ccache-${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments