Skip to content

Commit

Permalink
Add gh user
Browse files Browse the repository at this point in the history
  • Loading branch information
tustanivsky committed Dec 19, 2024
1 parent 7d26764 commit 65e2c7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,14 @@ jobs:
--name unreal \
--volume ${{ github.workspace }}:/workspace \
--workdir /workspace \
--user $uid:$gid \
--env HOME="/home/$user" \
--env PATH="/home/$user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
--network ip6net -p 80:80 \
ghcr.io/epicgames/unreal-engine:dev-slim-${{ matrix.unreal }}.1
docker logout ghcr.io
# Add the user so it has a home directory (needed to run tests later on)
docker exec --user root unreal useradd -u $uid -g $gid --create-home $user
# Ensure CA certs are in the right directory (needed for running tests)
docker exec --user root unreal bash -c "
mkdir -p /etc/pki/tls/certs ;
Expand Down Expand Up @@ -223,7 +228,7 @@ jobs:

- name: Set permissions for ${{ matrix.app }}
# sentry-native requires write access to sample project directory in order to initialize itself properly
run: docker exec --user root -w /workspace/checkout unreal chmod -R +x ${{ matrix.app }}
run: docker exec -w /workspace/checkout unreal chmod -R +x ${{ matrix.app }}

- name: Run tests
id: run-tests
Expand Down

0 comments on commit 65e2c7e

Please sign in to comment.