Skip to content

Commit

Permalink
Usermod builder
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 20, 2024
1 parent 122db0d commit 360e861
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:

- name: Run commands in Docker container
run: |
docker run --rm -v ${{ github.workspace }}:/workspace \
-w /workspace \
-u builder \
test-image \
/bin/bash -l -c "sudo mkdir /workspace/build && sudo chmod 777 /workspace/build &&
docker run --rm -v ${{ github.workspace }}:/workspace --user root \
-e HOST_UID=$(id -u) -e HOST_GID=$(id -g) test-image /bin/bash -c "
usermod -u \$HOST_UID builder && groupmod -g \$HOST_GID builder &&
chown -R \$HOST_UID:\$HOST_GID /home/builder &&
su builder -l -c 'cd /workspace &&
bun install &&
bun run codegen &&
bun run meson-setup.clang-release &&
meson compile -C build/ vs:executable
"
bun run vs.example
'"

0 comments on commit 360e861

Please sign in to comment.