ci: move shader-db clone/build into its own script
authorEric Engestrom <eric@igalia.com>
Fri, 4 Aug 2023 17:22:55 +0000 (18:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 30 Sep 2023 14:55:09 +0000 (14:55 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24504>

.gitlab-ci/container/build-shader-db.sh [new file with mode: 0644]
.gitlab-ci/container/debian/x86_64_build.sh
.gitlab-ci/image-tags.yml

diff --git a/.gitlab-ci/container/build-shader-db.sh b/.gitlab-ci/container/build-shader-db.sh
new file mode 100644 (file)
index 0000000..7cebcd8
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+# When changing this file, you need to bump the following
+# .gitlab-ci/image-tags.yml tags:
+# DEBIAN_BUILD_TAG
+
+set -ex
+
+pushd /usr/local
+git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
+rm -rf shader-db/.git
+cd shader-db
+make
+popd
index 13b85d7..67ee1a7 100644 (file)
@@ -78,12 +78,7 @@ rm -rf $XORGMACROS_VERSION
 
 . .gitlab-ci/container/build-wayland.sh
 
-pushd /usr/local
-git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
-rm -rf shader-db/.git
-cd shader-db
-make
-popd
+. .gitlab-ci/container/build-shader-db.sh
 
 git clone https://github.com/microsoft/DirectX-Headers -b v1.711.3-preview --depth 1
 pushd DirectX-Headers
index 256f3e4..d6bbd74 100644 (file)
@@ -10,7 +10,7 @@ variables:
    DEBIAN_BASE_TAG: "2023-09-25-virglrenderer"
 
    DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
-   DEBIAN_BUILD_TAG: "2023-09-14-bindgen-cli"
+   DEBIAN_BUILD_TAG: "2023-09-30-shader-db"
 
    DEBIAN_X86_64_BUILD_MINGW_IMAGE_PATH: "debian/x86_64_build-mingw"
    DEBIAN_BUILD_MINGW_TAG: "2023-05-25-bookworm"