6464 timeout-minutes : 40
6565 container :
6666 image : localhost:5000/xpu-kernel-ci-image:latest
67- options : --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged
67+ options : --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged -v ccache:/root/.ccache -e CCACHE_DIR=/root/.ccache
6868 steps :
6969 - name : Checkout
7070 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7474 - name : build & install wheel
7575 run : |
7676 git config --global --add safe.directory "${GITHUB_WORKSPACE}"
77+ export CCACHE_DIR=/root/.ccache
78+ export CCACHE_BASEDIR="${GITHUB_WORKSPACE}"
79+ export CCACHE_NOHASHDIR=1
80+ export CCACHE_COMPILERCHECK=content
81+ ccache -s || true
82+ ccache -p || true
7783 uv pip install -r requirements.txt
78- MAX_JOB=128 uv pip install -e . -v
84+ MAX_JOBS=128 uv pip install --no-build-isolation -e . -v
85+ ccache -s || true
7986
8087 - name : test
8188 run : |
98105 timeout-minutes : 40
99106 container :
100107 image : localhost:5000/xpu-kernel-ci-image:latest
101- options : --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged
108+ options : --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged -v ccache:/root/.ccache -e CCACHE_DIR=/root/.ccache
102109 steps :
103110 - name : Checkout
104111 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -108,8 +115,15 @@ jobs:
108115 - name : build & install wheel
109116 run : |
110117 git config --global --add safe.directory "${GITHUB_WORKSPACE}"
118+ export CCACHE_DIR=/root/.ccache
119+ export CCACHE_BASEDIR="${GITHUB_WORKSPACE}"
120+ export CCACHE_NOHASHDIR=1
121+ export CCACHE_COMPILERCHECK=content
122+ ccache -s || true
123+ ccache -p || true
111124 uv pip install -r requirements.txt
112- MAX_JOBS=128 uv pip install -e . -v
125+ MAX_JOBS=128 uv pip install --no-build-isolation -e . -v
126+ ccache -s || true
113127
114128 - name : test
115129 run : |
0 commit comments