1#!/bin/bash 2 3# When changing this file, you need to bump the following 4# .gitlab-ci/image-tags.yml tags: 5# DEBIAN_X86_64_TEST_VK_TAG 6# KERNEL_ROOTFS_TAG 7set -ex 8 9VKD3D_PROTON_COMMIT="a0ccc383937903f4ca0997ce53e41ccce7f2f2ec" 10 11VKD3D_PROTON_DST_DIR="/vkd3d-proton-tests" 12VKD3D_PROTON_SRC_DIR="/vkd3d-proton-src" 13VKD3D_PROTON_BUILD_DIR="/vkd3d-proton-$VKD3D_PROTON_VERSION" 14 15function build_arch { 16 local arch="$1" 17 shift 18 19 meson "$@" \ 20 -Denable_tests=true \ 21 --buildtype release \ 22 --prefix "$VKD3D_PROTON_DST_DIR" \ 23 --strip \ 24 --bindir "x${arch}" \ 25 --libdir "x${arch}" \ 26 "$VKD3D_PROTON_BUILD_DIR/build.${arch}" 27 28 ninja -C "$VKD3D_PROTON_BUILD_DIR/build.${arch}" install 29 30 install -D -m755 -t "${VKD3D_PROTON_DST_DIR}/x${arch}/bin" "$VKD3D_PROTON_BUILD_DIR/build.${arch}/tests/d3d12" 31} 32 33git clone https://github.com/HansKristian-Work/vkd3d-proton.git --single-branch -b master --no-checkout "$VKD3D_PROTON_SRC_DIR" 34pushd "$VKD3D_PROTON_SRC_DIR" 35git checkout "$VKD3D_PROTON_COMMIT" 36git submodule update --init --recursive 37git submodule update --recursive 38build_arch 64 39build_arch 86 40popd 41 42rm -rf "$VKD3D_PROTON_BUILD_DIR" 43rm -rf "$VKD3D_PROTON_SRC_DIR" 44