ci: Run tests using dxcompiler.

The dxcompiler is only used for 64 bit builds, because no official
32 bit implementation is distributed. This might change in the future
building the compiler ourselves and using vkd3d-shader to sign the
generated shaders.
This commit is contained in:
Giovanni Mascellani 2023-10-02 14:07:28 +02:00 committed by Alexandre Julliard
parent 680a5aaa78
commit 1bd8baf420
Notes: Alexandre Julliard 2023-10-16 22:59:19 +02:00
Approved-by: Conor McCarthy (@cmccarthy)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/390
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@ set -Eeuxo pipefail
rm -fr build rm -fr build
mkdir build mkdir build
cd build cd build
../configure --enable-demos CFLAGS="-g -O2 -Werror" CPPFLAGS="-DVKD3D_SHADER_UNSUPPORTED_DXIL" && \ export LD_LIBRARY_PATH=/usr/local/lib
../configure --enable-demos DXCOMPILER_LIBS="-L/usr/local/lib" CFLAGS="-g -O2 -Werror" CPPFLAGS="-DVKD3D_SHADER_UNSUPPORTED_DXIL" && \
make -j$(nproc) && \ make -j$(nproc) && \
make -j$(nproc) check || \ make -j$(nproc) check || \
touch ../pipeline_failed touch ../pipeline_failed

View File

@ -14,7 +14,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get update && \ apt-get update && \
apt-get dist-upgrade -y && \ apt-get dist-upgrade -y && \
apt-get install -y build-essential pkg-config gcc-multilib gcc-mingw-w64 \ apt-get install -y build-essential pkg-config gcc-multilib gcc-mingw-w64 \
autoconf automake libtool flex bison \ autoconf automake libtool flex bison curl \
git ca-certificates rsync \ git ca-certificates rsync \
doxygen doxygen-latex graphviz \ doxygen doxygen-latex graphviz \
mesa-vulkan-drivers mesa-vulkan-drivers:i386 \ mesa-vulkan-drivers mesa-vulkan-drivers:i386 \
@ -35,6 +35,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
cd ../.. && \ cd ../.. && \
rm -rf wine && \ rm -rf wine && \
apt-get clean && \ apt-get clean && \
curl -L -s https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2308/linux_dxc_2023_08_14.x86_64.tar.gz | tar zx -C /usr/local ./lib/libdxcompiler.so ./lib/libdxil.so && \
groupadd host-render -g 800 && \ groupadd host-render -g 800 && \
useradd -m gitlab -G host-render useradd -m gitlab -G host-render