Skip to content

Commit dfdfbec

Browse files
authored
Merge pull request #24 from shaia/fix/cuda-manylinux-wheel
fix: Clean build artifacts and fix permissions in CUDA container
2 parents fa325b2 + 4edda9e commit dfdfbec

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@ jobs:
167167
run: |
168168
# Build inside NVIDIA's manylinux-compatible CUDA container
169169
# Rocky Linux 8 is manylinux_2_28 compatible
170+
# Use --user to match host UID/GID for proper file ownership
170171
docker run --rm \
171172
-v "${{ github.workspace }}:/workspace" \
172173
-w /workspace \
173174
-e CFD_STATIC_LINK=ON \
174175
-e CFD_USE_STABLE_ABI=ON \
176+
-e HOME=/tmp \
175177
nvidia/cuda:12.4.0-devel-rockylinux8 \
176178
bash -c "
177179
set -e
@@ -180,6 +182,9 @@ jobs:
180182
# Install patchelf via pip (EPEL version is too old for auditwheel)
181183
python3.11 -m pip install patchelf
182184
185+
# Clean any previous build artifacts
186+
rm -rf cfd/build build dist dist_raw
187+
183188
# Build CFD C library with CUDA
184189
# 75=Turing, 80=Ampere, 86=Ampere, 89=Ada, 90=Hopper
185190
cmake -S cfd -B cfd/build \
@@ -198,6 +203,9 @@ jobs:
198203
# Repair wheel for manylinux compatibility
199204
python3.11 -m pip install auditwheel
200205
auditwheel repair dist_raw/*.whl --plat manylinux_2_28_x86_64 -w dist/
206+
207+
# Fix permissions for host user
208+
chmod -R 777 dist/
201209
"
202210
echo "=== Wheel built (CUDA manylinux) ==="
203211
ls -la dist/

0 commit comments

Comments
 (0)