Skip to content

Commit 17d7d9f

Browse files
committed
Fix ownership after apt-get
1 parent 3873b67 commit 17d7d9f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-wheels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
if: runner.os == 'Linux'
4242
run: |
4343
docker run --rm -i \
44-
--user $(id -u):$(id -g) \
44+
-e HOST_UID=$(id -u) \
45+
-e HOST_GID=$(id -g) \
4546
-v $PWD:/src \
4647
-w /src \
4748
nvidia/cuda:${{ matrix.cuda }}-devel-${{ matrix.os.name }}${{ matrix.os.version }} \
@@ -60,6 +61,7 @@ jobs:
6061
apt-get install -y python${{ matrix.python }} python${{ matrix.python }}-venv python${{ matrix.python }}-dev python3-pip cmake tzdata patchelf
6162
6263
echo "=== Creating virtual environment ==="
64+
chown -R $HOST_UID:$HOST_GID /src
6365
python${{ matrix.python }} -m venv /venv
6466
source /venv/bin/activate
6567
python${{ matrix.python }} --version || true

0 commit comments

Comments
 (0)