Skip to content

Commit 93b92b7

Browse files
authored
start server on host and make container aware of the ports
Uncommented sccache start server step and added container engine configuration.
1 parent 4d31536 commit 93b92b7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/build-wheel.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ jobs:
5454
- name: Enable sccache
5555
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # 0.0.9
5656

57-
# - name: Start sccache
58-
# # Since we actually /use/ this from a container, we need to start the server
59-
# # in the host first.
60-
# run: sccache --start-server
61-
#
62-
# - name: Expose Cache URL
63-
# run: |
64-
# echo "ACTIONS_RUNTIME_TOKEN=$ACTIONS_RUNTIME_TOKEN" >> $GITHUB_ENV
57+
- name: Start sccache
58+
# Since we actually /use/ this from a container, we need to start the server
59+
# in the host first.
60+
run: sccache --start-server
6561

6662
# xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
6763
- name: Adding addtional GHA cache-related env vars
@@ -153,6 +149,7 @@ jobs:
153149
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
154150
env:
155151
CIBW_BUILD: ${{ env.CIBW_BUILD }}
152+
CIBW_CONTAINER_ENGINE: "docker; create_args: --network=host"
156153
# CIBW mounts the host filesystem under /host
157154
CIBW_ENVIRONMENT_LINUX: >
158155
CUDA_PATH=/host/${{ env.CUDA_PATH }}

0 commit comments

Comments
 (0)