.github: macos: split off own version of install-prereq.sh

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-10 15:20:51 +01:00
committed by Enrico Weigelt
parent d8afe67983
commit 0b2a21722b
3 changed files with 16 additions and 7 deletions

View File

@@ -13,9 +13,6 @@ build_meson drm https://github.com/X11Libre/drm
fi
build_meson libxcvt https://github.com/X11Libre/libxcvt libxcvt-0.1.0
build_meson xorgproto https://github.com/X11Libre/xorgproto xorgproto-2024.1
if [ "$X11_OS" = "Darwin" ]; then
build_ac xset https://github.com/X11Libre/xset xset-1.2.5
fi
# really must be build via autoconf instead of meson, otherwise piglit wont find the test programs
build_ac_xts xts https://github.com/X11Libre/xts aae51229af810efba24412511f60602fab53eded

13
.github/scripts/macos/install-prereq.sh vendored Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
. .github/scripts/util.sh
mkdir -p $X11_BUILD_DIR
cd $X11_BUILD_DIR
build_meson rendercheck https://github.com/X11Libre/rendercheck rendercheck-1.6
build_meson libxcvt https://github.com/X11Libre/libxcvt libxcvt-0.1.0
build_meson xorgproto https://github.com/X11Libre/xorgproto xorgproto-2024.1
build_ac xset https://github.com/X11Libre/xset xset-1.2.5

View File

@@ -200,13 +200,11 @@ jobs:
with:
path: |
${{ env.X11_PREFIX }}
${{ env.X11_BUILD_DIR }}/xts
${{ env.X11_BUILD_DIR }}/piglit
key: ${{ runner.os }}-x11-deps-${{ hashFiles('.github/scripts/install-prereq.sh') }}
key: ${{ runner.os }}-x11-deps-${{ hashFiles('.github/scripts/macos/install-prereq.sh') }}
restore-keys: ${{ runner.os }}-x11-deps-
- name: generic prereq
run: .github/scripts/install-prereq.sh
run: .github/scripts/macos/install-prereq.sh
- name: build
run: .gitlab-ci/meson-build.sh
@@ -246,6 +244,7 @@ jobs:
usesh: true
release: "14.3"
run: ./.github/scripts/freebsd/run-xserver-build.sh
xserver-build-dragonflybsd:
runs-on: ubuntu-latest
env: