6 export DEBIAN_FRONTEND
=noninteractive
12 # Upstream LLVM package repository
13 apt-key add .gitlab-ci
/container
/llvm-snapshot.gpg.key
14 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc
/apt
/sources.list.d
/llvm9.list
16 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc
/apt
/sources.list
17 echo 'deb https://deb.debian.org/debian testing main' >/etc
/apt
/sources.list.d
/testing.list
21 # Don't use newer packages from testing by default
22 cat >/etc
/apt
/preferences
<<EOF
24 Pin: release a=testing
28 apt-get dist-upgrade
-y
30 apt-get
install -y --no-remove \
74 # We need multiarch for Wine
75 dpkg
--add-architecture i386
79 apt-get
install -y --no-remove \
84 # Install packages we need from Debian testing last, to avoid pulling in more
85 apt-get
install -y -t testing \
89 ############### Set up Wine env variables
91 export WINEDEBUG
="-all"
92 export WINEPREFIX
="/dxvk-wine64"
94 ############### Install DXVK
98 # We don't want crash dialogs
99 cat >crashdialog.reg
<<EOF
100 Windows Registry Editor Version 5.00
102 [HKEY_CURRENT_USER\Software\Wine\WineDbg]
103 "ShowCrashDialog"=dword:00000000
107 # Set the wine prefix and disable the crash dialog
108 wine regedit crashdialog.reg
111 # DXVK's setup often fails with:
112 # "${WINEPREFIX}: Not a valid wine prefix."
113 # and that is just spit because of checking the existance of the
114 # system.reg file, which fails.
115 # Just giving it a bit more of time for it to be created solves the
117 test -f "${WINEPREFIX}/system.reg" ||
sleep 2
119 wget
"https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
120 tar xzpf dxvk-
"${DXVK_VERSION}".
tar.gz
121 dxvk-
"${DXVK_VERSION}"/setup_dxvk.sh
install
122 rm -rf dxvk-
"${DXVK_VERSION}"
123 rm dxvk-
"${DXVK_VERSION}".
tar.gz
125 ############### Install Windows' apitrace binaries
127 APITRACE_VERSION
="9.0"
128 APITRACE_VERSION_DATE
="20191126"
130 wget
"https://github.com/apitrace/apitrace/releases/download/${APITRACE_VERSION}/apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z"
131 7zr x
"apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z" \
132 "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64/bin/apitrace.exe" \
133 "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64/bin/d3dretrace.exe"
134 mv "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64" /apitrace-msvc-win64
135 rm "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z"
137 # Add the apitrace path to the registry
139 reg add
"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" \
142 /d
"C:\windows\system32;C:\windows;C:\windows\system32\wbem;Z:\apitrace-msvc-win64\bin" \
145 ############### Building ...
147 . .gitlab-ci
/container
/container_pre_build.sh
149 ############### Build dEQP runner
151 . .gitlab-ci
/build-cts-runner.sh
153 ############### Build Fossilize
155 . .gitlab-ci
/build-fossilize.sh
157 ############### Build dEQP VK
159 . .gitlab-ci
/build-deqp-vk.sh
161 ############### Build gfxreconstruct
163 . .gitlab-ci
/build-gfxreconstruct.sh
165 ############### Build VulkanTools
167 . .gitlab-ci
/build-vulkantools.sh
169 ############### Uninstall the build software
185 libxcb-keysyms1-dev \
194 apt-get autoremove
-y --purge