[chore] Disable ccache for sgl-kernel release (#13541)

This commit is contained in:
Baizhou Zhang
2025-11-18 14:28:58 -08:00
committed by GitHub
parent 92ad2ff9ce
commit 10969ae4be
2 changed files with 56 additions and 41 deletions
+4
View File
@@ -45,6 +45,8 @@ jobs:
cd sgl-kernel
chmod +x ./build.sh
./build.sh "${{ matrix.python-version }}" "${{ matrix.cuda-version }}" ${{ matrix.arch == 'aarch64' && 'aarch64' || '' }}
env:
USE_CCACHE: 0
- name: Upload to PyPI
working-directory: sgl-kernel
@@ -136,6 +138,8 @@ jobs:
cd sgl-kernel
chmod +x ./build.sh
./build.sh "${{ matrix.python-version }}" "${{ matrix.cuda-version }}" ${{ matrix.arch == 'aarch64' && 'aarch64' || '' }}
env:
USE_CCACHE: 0
- name: Upload artifacts
uses: actions/upload-artifact@v4
+11
View File
@@ -48,6 +48,7 @@ echo "Cache Configuration"
echo "==================================="
echo "CMake download cache: ${CMAKE_DOWNLOAD_CACHE}"
echo "ccache directory: ${CCACHE_DIR}"
echo "ccache enabled: ${USE_CCACHE:-1}"
echo ""
docker run --rm \
@@ -56,6 +57,7 @@ docker run --rm \
-v ${CCACHE_DIR}:/ccache \
-e ENABLE_CMAKE_PROFILE="${ENABLE_CMAKE_PROFILE:-}" \
-e ENABLE_BUILD_PROFILE="${ENABLE_BUILD_PROFILE:-}" \
-e USE_CCACHE="${USE_CCACHE:-1}" \
${DOCKER_IMAGE} \
bash -c "
set -e
@@ -98,6 +100,7 @@ docker run --rm \
which cmake
cmake --version
if [ \"${USE_CCACHE}\" = \"1\" ]; then
echo \"==================================\"
echo \"Installing and configuring ccache\"
echo \"==================================\"
@@ -141,6 +144,12 @@ docker run --rm \
# Show ccache stats before build
ccache -sV || true
echo \"\"
else
echo \"==================================\"
echo \"ccache disabled (USE_CCACHE=0)\"
echo \"==================================\"
echo \"\"
fi
yum install numactl-devel -y --nogpgcheck && \
yum install libibverbs -y --nogpgcheck && \
@@ -223,10 +232,12 @@ docker run --rm \
fi
# Show ccache statistics after build
if [ \"${USE_CCACHE}\" = \"1\" ]; then
echo \"\"
echo \"==================================\"
echo \"ccache Statistics\"
echo \"==================================\"
ccache -s
echo \"\"
fi
"