Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
with:
fetch-depth: 0

- name: Intall ccache
if: ${{ !startsWith(inputs.host-platform, 'win') }}
run:
sudo apt install -y ccache

- name: Setup proxy cache
uses: nv-gha-runners/setup-proxy-cache@main
continue-on-error: true
Expand All @@ -72,6 +77,14 @@ jobs:
SHA: ${{ github.sha }}
run: ./ci/tools/env-vars build

- name: Setup ccache
id: cache-
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
enableCrossOsArchive: true
key: ccache

- name: Dump environment
run: |
env
Expand Down Expand Up @@ -130,6 +143,9 @@ jobs:
CIBW_ENVIRONMENT_LINUX: >
CUDA_PATH=/host/${{ env.CUDA_PATH }}
CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
CC="/host${{ env.CCACHE_BIN }} cc"
CXX="/host${{ env.CCACHE_BIN }} c++"
CCACHE_DIR="/host${{ env.CCACHE_DIR }}"
CIBW_ENVIRONMENT_WINDOWS: >
CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})"
CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
Expand Down Expand Up @@ -380,3 +396,8 @@ jobs:
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
if-no-files-found: error

- name: Display ccache stats
if: ${{ !startsWith(inputs.host-platform, 'win') }}
run:
ccache -s
5 changes: 5 additions & 0 deletions ci/tools/env-vars
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ fi
echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/cuda_bindings/dist")"
echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/cuda_bindings/tests/cython")"
} >> $GITHUB_ENV

{
echo "CCACHE_BIN=$(which ccache)"
echo "CCACHE_DIR=${GITHUB_WORKSPACE}/.ccache"
} >> $GITHUB_ENV
Loading