Skip to content

Commit 19ac36b

Browse files
committed
save cache
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 7c00915 commit 19ac36b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/_build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ jobs:
117117
python -c "from torch.utils import cpp_extension; print (cpp_extension.CUDA_HOME)"
118118
119119
- name: Cache build dir
120-
uses: actions/cache@v4
120+
uses: actions/cache/restore@v4
121121
with:
122122
path: build
123123
key: build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}
124-
save-always: true
125124

126125
- name: Build wheel
127126
id: build_wheel
@@ -158,6 +157,13 @@ jobs:
158157
# Do not fail the job if timeout killed the build
159158
exit 0
160159
160+
- name: Save cache
161+
if: always()
162+
uses: actions/cache/save@v4
163+
with:
164+
key: build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}
165+
path: build
166+
161167
- name: Log Built Wheels
162168
run: |
163169
ls dist

0 commit comments

Comments
 (0)