Commit a8a3270 1 parent 0a1e1a9 commit a8a3270 Copy full SHA for a8a3270
File tree 1 file changed +4
-4
lines changed
.github/actions/docker-build
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 37
37
# TODO(youtalk): Remove obsolete "cache-" restore-keys
38
38
- name : Cache ccache
39
39
uses : actions/cache@v4
40
- if : ${{ inputs.name == 'no-cuda' }}
40
+ if : ${{ inputs.name == 'no-cuda' && github.ref == 'refs/heads/main' }}
41
41
id : cache-ccahce
42
42
with :
43
43
path : |
51
51
52
52
- name : Cache apt-get
53
53
uses : actions/cache@v4
54
- if : ${{ inputs.name == 'no-cuda' }}
54
+ if : ${{ inputs.name == 'no-cuda' && github.ref == 'refs/heads/main' }}
55
55
id : cache-apt-get
56
56
with :
57
57
path : |
65
65
# TODO(youtalk): Remove obsolete "cache-" restore-keys
66
66
- name : Restore ccache
67
67
uses : actions/cache/restore@v4
68
- if : ${{ inputs.name != 'no-cuda' }}
68
+ if : ${{ inputs.name != 'no-cuda' || github.ref != 'refs/heads/main' }}
69
69
with :
70
70
path : |
71
71
root-ccache
78
78
79
79
- name : Restore apt-get
80
80
uses : actions/cache/restore@v4
81
- if : ${{ inputs.name != 'no-cuda' }}
81
+ if : ${{ inputs.name != 'no-cuda' || github.ref != 'refs/heads/main' }}
82
82
with :
83
83
path : |
84
84
var-cache-apt
You can’t perform that action at this time.
0 commit comments