@@ -44,19 +44,24 @@ jobs:
4444 with :
4545 fetch-depth : 0
4646
47- # The env vars ACTIONS_CACHE_SERVICE_V2, ACTIONS_RESULTS_URL, and ACTIONS_RUNTIME_TOKEN
48- # are exposed by this action.
49- - name : Enable sccache
47+ - name : Install latest rapidsai/sccache
5048 if : ${{ startsWith(inputs.host-platform, 'linux') }}
51- uses : mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # 0.0.9
49+ run : |
50+ curl -fsSL "https://github.com/rapidsai/sccache/releases/latest/download/sccache-$(uname -m)-unknown-linux-musl.tar.gz" \
51+ | sudo tar -C /usr/local/bin -xvzf - --wildcards --strip-components=1 -x '*/sccache'
52+ echo "SCCACHE_PATH=/usr/local/bin/sccache" >> "$GITHUB_ENV"
53+ echo "SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=true" >> "$GITHUB_ENV"
5254
5355 # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
5456 - name : Adding addtional GHA cache-related env vars
55- uses : actions/github-script@v7
57+ uses : actions/github-script@v8
5658 with :
5759 script : |
58- core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'])
59- core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'])
60+ core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on');
61+ core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'] || '');
62+ core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || '');
63+ core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'] || '');
64+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || '');
6065
6166 - name : Setup proxy cache
6267 uses : nv-gha-runners/setup-proxy-cache@main
@@ -104,11 +109,10 @@ jobs:
104109 ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }}
105110 ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
106111 ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }}
107- SCCACHE_DIR=/host/${{ env.SCCACHE_DIR }}
108- SCCACHE_CACHE_SIZE=${{ env.SCCACHE_CACHE_SIZE }}
112+ SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=${{ env.SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE }}
109113 # check cache stats before leaving cibuildwheel
110114 CIBW_BEFORE_TEST_LINUX : >
111- "/host/${{ env.SCCACHE_PATH }}" --show-stats
115+ "/host/${{ env.SCCACHE_PATH }}" --show-adv- stats
112116 # force the test stage to be run (so that before-test is not skipped)
113117 # TODO: we might want to think twice on adding this, it does a lot of
114118 # things before reaching this command.
@@ -154,19 +158,24 @@ jobs:
154158 with :
155159 fetch-depth : 0
156160
157- # The env vars ACTIONS_CACHE_SERVICE_V2, ACTIONS_RESULTS_URL, and ACTIONS_RUNTIME_TOKEN
158- # are exposed by this action.
159- - name : Enable sccache
161+ - name : Install latest rapidsai/sccache
160162 if : ${{ startsWith(inputs.host-platform, 'linux') }}
161- uses : mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # 0.0.9
163+ run : |
164+ curl -fsSL "https://github.com/rapidsai/sccache/releases/latest/download/sccache-$(uname -m)-unknown-linux-musl.tar.gz" \
165+ | sudo tar -C /usr/local/bin -xvzf - --wildcards --strip-components=1 -x '*/sccache'
166+ echo "SCCACHE_PATH=/usr/local/bin/sccache" >> "$GITHUB_ENV"
167+ echo "SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=true" >> "$GITHUB_ENV"
162168
163169 # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
164170 - name : Adding addtional GHA cache-related env vars
165- uses : actions/github-script@v7
171+ uses : actions/github-script@v8
166172 with :
167173 script : |
168- core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'])
169- core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'])
174+ core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on');
175+ core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'] || '');
176+ core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || '');
177+ core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'] || '');
178+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || '');
170179
171180 - name : Setup proxy cache
172181 uses : nv-gha-runners/setup-proxy-cache@main
@@ -227,8 +236,8 @@ jobs:
227236 run : |
228237 pushd testing
229238 if [[ "${{ inputs.host-platform }}" == linux* ]]; then
230- PATH=$(dirname ${SCCACHE_PATH}):${PATH}
231- SCCACHE_GHA_ENABLED=true
239+ export PATH=$(dirname ${SCCACHE_PATH}):${PATH}
240+ export SCCACHE_GHA_ENABLED=true
232241 fi
233242
234243 nvcc --version
@@ -247,6 +256,10 @@ jobs:
247256 done
248257 popd
249258
259+ if [[ "${{ inputs.host-platform }}" == linux* ]]; then
260+ "${SCCACHE_PATH}" --show-adv-stats
261+ fi
262+
250263 - name : Upload numba-cuda test artifacts
251264 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
252265 with :
0 commit comments