4040 (inputs.host-platform == 'win-64' && 'windows-2022') }}
4141 steps :
4242 - name : Checkout ${{ github.event.repository.name }}
43- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
43+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444 with :
4545 fetch-depth : 0
4646
8181
8282 - name : Set up MSVC
8383 if : ${{ startsWith(inputs.host-platform, 'win') }}
84- uses : ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits
84+ uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
8585
8686 - name : Set environment variables
8787 env :
9595 env
9696
9797 - name : Build numba-cuda wheel
98- uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1
98+ uses : pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
9999 with :
100100 package-dir : .
101101 output-dir : ${{ env.NUMBA_CUDA_ARTIFACTS_DIR }}
@@ -114,13 +114,22 @@ jobs:
114114 SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=${{ env.SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE }}
115115 # check cache stats before leaving cibuildwheel
116116 CIBW_BEFORE_TEST_LINUX : >
117- "/host/${{ env.SCCACHE_PATH }}" --show-adv-stats
117+ "/host/${{ env.SCCACHE_PATH }}" --show-adv-stats &&
118+ "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_numba_cuda.json
118119 # force the test stage to be run (so that before-test is not skipped)
119120 # TODO: we might want to think twice on adding this, it does a lot of
120121 # things before reaching this command.
121122 CIBW_TEST_COMMAND_LINUX : >
122123 echo "ok!"
123124
125+ - name : Report sccache stats (numba-cuda)
126+ if : ${{ inputs.host-platform != 'win-64' }}
127+ uses : ./.github/actions/sccache-summary
128+ with :
129+ json-file : sccache_numba_cuda.json
130+ label : " numba-cuda"
131+ build-step : " Build numba-cuda wheel"
132+
124133 - name : List the numba-cuda artifacts directory
125134 run : |
126135 if [[ "${{ inputs.host-platform }}" == win* ]]; then
@@ -156,7 +165,7 @@ jobs:
156165 (inputs.host-platform == 'win-64' && 'windows-2022') }}
157166 steps :
158167 - name : Checkout ${{ github.event.repository.name }}
159- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
168+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
160169 with :
161170 fetch-depth : 0
162171
@@ -195,7 +204,7 @@ jobs:
195204
196205 - name : Set up MSVC
197206 if : ${{ startsWith(inputs.host-platform, 'win') }}
198- uses : ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits
207+ uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
199208
200209 - name : Set environment variables
201210 env :
@@ -212,7 +221,7 @@ jobs:
212221 env
213222
214223 - name : Download numba-cuda build artifacts
215- uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
224+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
216225 with :
217226 name : ${{ env.NUMBA_CUDA_ARTIFACT_NAME }}
218227 path : ${{ env.NUMBA_CUDA_ARTIFACTS_DIR }}
@@ -261,8 +270,17 @@ jobs:
261270
262271 if [[ "${{ inputs.host-platform }}" == linux* ]]; then
263272 "${SCCACHE_PATH}" --show-adv-stats
273+ "${SCCACHE_PATH}" --show-stats --stats-format=json > "${GITHUB_WORKSPACE}/sccache_test_artifacts_cu${CUDA_MAJOR}.json"
264274 fi
265275
276+ - name : Report sccache stats (test artifacts cu${{ env.CUDA_MAJOR }})
277+ if : ${{ inputs.host-platform != 'win-64' }}
278+ uses : ./.github/actions/sccache-summary
279+ with :
280+ json-file : sccache_test_artifacts_cu${{ env.CUDA_MAJOR }}.json
281+ label : " test artifacts (CUDA ${{ matrix.cuda-version }})"
282+ build-step : " Build numba-cuda test artifacts aginst CUDA ${{ matrix.cuda-version }}"
283+
266284 - name : Upload numba-cuda test artifacts
267285 uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
268286 with :
0 commit comments