File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments