Skip to content

Commit 158541f

Browse files
committed
ci: keep rapidsai/sccache in build-wheel.yml, drop obsolete ACTIONS_ vars
Restore the rapidsai/sccache install and the github-script step in build-wheel.yml instead of using mozilla-actions/sccache-action. The CUDA C++/Python teams want to stay on the RAPIDS fork. Only ACTIONS_CACHE_URL and ACTIONS_RUNTIME_URL stay removed, from both the github-script export and the CIBW_ENVIRONMENT_LINUX forwarding. sccache's GHA v2 backend reads only ACTIONS_RESULTS_URL and ACTIONS_RUNTIME_TOKEN.
1 parent 235faa3 commit 158541f

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

‎.github/workflows/build-wheel.yml‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,24 @@ jobs:
8686
# the job level instead of linking into the diff.
8787
run: echo "::add-matcher::.github/matchers/compiler.json"
8888

89-
# Cython packages need sccache. Compiles run inside the cibuildwheel
90-
# container, which does not inherit the runner's cache credentials; the
91-
# env vars exported by this action (ACTIONS_CACHE_SERVICE_V2,
92-
# ACTIONS_RESULTS_URL, ACTIONS_RUNTIME_TOKEN, SCCACHE_PATH) are forwarded
93-
# explicitly via CIBW_ENVIRONMENT_LINUX below. Stats are reported from
94-
# inside the container, so the action's own (host-side) reporting is off.
95-
- name: Enable sccache
89+
- name: Install latest rapidsai/sccache
9690
if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') }}
97-
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # 0.0.11
91+
run: |
92+
curl -fsSL "https://github.com/rapidsai/sccache/releases/latest/download/sccache-$(uname -m)-unknown-linux-musl.tar.gz" \
93+
| sudo tar -C /usr/local/bin -xvzf - --wildcards --strip-components=1 -x '*/sccache'
94+
echo "SCCACHE_PATH=/usr/local/bin/sccache" >> "$GITHUB_ENV"
95+
96+
# The runner only exposes these values to actions, not to `run:` steps or
97+
# the cibuildwheel container, so re-export them for sccache's GHA backend.
98+
# xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
99+
- name: Adding addtional GHA cache-related env vars
100+
if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' }}
101+
uses: actions/github-script@v9
98102
with:
99-
version: v0.18.0
100-
disable_annotations: 'true'
103+
script: |
104+
core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on');
105+
core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || '');
106+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || '');
101107
102108
- name: Setup proxy cache
103109
uses: nv-gha-runners/setup-proxy-cache@main

0 commit comments

Comments
 (0)