|
48 | 48 | # are exposed by this action. |
49 | 49 | - name: Enable sccache |
50 | 50 | uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # 0.0.9 |
| 51 | + with: |
| 52 | + disable_annotations: 'true' |
51 | 53 |
|
52 | 54 | # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 |
53 | 55 | - name: Adding addtional GHA cache-related env vars |
@@ -175,13 +177,22 @@ jobs: |
175 | 177 | CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }} |
176 | 178 | # check cache stats before leaving cibuildwheel |
177 | 179 | CIBW_BEFORE_TEST_LINUX: > |
178 | | - "/host/${{ env.SCCACHE_PATH }}" --show-stats |
| 180 | + "/host/${{ env.SCCACHE_PATH }}" --show-stats && |
| 181 | + "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_bindings.json |
179 | 182 | # force the test stage to be run (so that before-test is not skipped) |
180 | 183 | # TODO: we might want to think twice on adding this, it does a lot of |
181 | 184 | # things before reaching this command. |
182 | 185 | CIBW_TEST_COMMAND: > |
183 | 186 | echo "ok!" |
184 | 187 |
|
| 188 | + - name: Report sccache stats (cuda.bindings) |
| 189 | + if: ${{ inputs.host-platform != 'win-64' }} |
| 190 | + uses: ./.github/actions/sccache-summary |
| 191 | + with: |
| 192 | + json-file: sccache_bindings.json |
| 193 | + label: "cuda.bindings" |
| 194 | + build-step: "Build cuda.bindings wheel" |
| 195 | + |
185 | 196 | - name: List the cuda.bindings artifacts directory |
186 | 197 | run: | |
187 | 198 | if [[ "${{ inputs.host-platform }}" == win* ]]; then |
@@ -233,13 +244,22 @@ jobs: |
233 | 244 | PIP_FIND_LINKS="$(cygpath -w ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }})" |
234 | 245 | # check cache stats before leaving cibuildwheel |
235 | 246 | CIBW_BEFORE_TEST_LINUX: > |
236 | | - "/host${{ env.SCCACHE_PATH }}" --show-stats |
| 247 | + "/host${{ env.SCCACHE_PATH }}" --show-stats && |
| 248 | + "/host${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_core.json |
237 | 249 | # force the test stage to be run (so that before-test is not skipped) |
238 | 250 | # TODO: we might want to think twice on adding this, it does a lot of |
239 | 251 | # things before reaching this command. |
240 | 252 | CIBW_TEST_COMMAND: > |
241 | 253 | echo "ok!" |
242 | 254 |
|
| 255 | + - name: Report sccache stats (cuda.core) |
| 256 | + if: ${{ inputs.host-platform != 'win-64' }} |
| 257 | + uses: ./.github/actions/sccache-summary |
| 258 | + with: |
| 259 | + json-file: sccache_core.json |
| 260 | + label: "cuda.core" |
| 261 | + build-step: "Build cuda.core wheel" |
| 262 | + |
243 | 263 | - name: List the cuda.core artifacts directory and rename |
244 | 264 | run: | |
245 | 265 | if [[ "${{ inputs.host-platform }}" == win* ]]; then |
@@ -412,13 +432,22 @@ jobs: |
412 | 432 | PIP_FIND_LINKS="$(cygpath -w ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }})" |
413 | 433 | # check cache stats before leaving cibuildwheel |
414 | 434 | CIBW_BEFORE_TEST_LINUX: > |
415 | | - "/host${{ env.SCCACHE_PATH }}" --show-stats |
| 435 | + "/host${{ env.SCCACHE_PATH }}" --show-stats && |
| 436 | + "/host${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_core_prev.json |
416 | 437 | # force the test stage to be run (so that before-test is not skipped) |
417 | 438 | # TODO: we might want to think twice on adding this, it does a lot of |
418 | 439 | # things before reaching this command. |
419 | 440 | CIBW_TEST_COMMAND: > |
420 | 441 | echo "ok!" |
421 | 442 |
|
| 443 | + - name: Report sccache stats (cuda.core prev) |
| 444 | + if: ${{ inputs.host-platform != 'win-64' }} |
| 445 | + uses: ./.github/actions/sccache-summary |
| 446 | + with: |
| 447 | + json-file: sccache_core_prev.json |
| 448 | + label: "cuda.core (prev CTK)" |
| 449 | + build-step: "Build cuda.core wheel" |
| 450 | + |
422 | 451 | - name: List the cuda.core artifacts directory and rename |
423 | 452 | run: | |
424 | 453 | if [[ "${{ inputs.host-platform }}" == win* ]]; then |
|
0 commit comments