ci: Execute CI also an a runner with an AMD GPU.

In order for this to work it is expected that the Docker host exposes
the devices in /dev/dri to the guest system, and that the render nodes
have GID 800 (usually that would be the "render" group, but the GID
for that group is dynamically assigned, so we explicitly agree on a
fixed number).
This commit is contained in:
Giovanni Mascellani 2023-08-29 22:59:50 +02:00 committed by Alexandre Julliard
parent a597dc8755
commit 52d52ad1b9
Notes: Alexandre Julliard 2023-08-31 22:48:11 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/318
2 changed files with 13 additions and 2 deletions

View File

@ -25,5 +25,15 @@
paths: paths:
- artifacts - artifacts
build: build-radv:
extends: .build extends: .build
tags:
- amd-gpu
variables:
VK_LOADER_DRIVERS_SELECT: 'radeon_*'
build-llvmpipe:
extends: .build
allow_failure: true
variables:
VK_LOADER_DRIVERS_SELECT: 'lvp_*'

View File

@ -35,6 +35,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
cd ../.. && \ cd ../.. && \
rm -rf wine && \ rm -rf wine && \
apt-get clean && \ apt-get clean && \
useradd -m gitlab groupadd host-render -g 800 && \
useradd -m gitlab -G host-render
USER gitlab USER gitlab