From 223a3dc46195fb778c375bcf9d2a39cfabb2a02e Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 3 Dec 2025 17:13:06 +0100 Subject: [PATCH] release: verify SDL_REVISION contains SDL- (cherry picked from commit 3313cb9c4bcd3aa744893e3888dbe58e89a3eec7) --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc29751609..4cd34e76f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,9 +95,17 @@ jobs: libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev - name: 'CMake (configure + build + tests + examples)' run: | + set -e cmake -S ${{ steps.tar.outputs.path }} -B /tmp/build -DSDL_TEST_LIBRARY=TRUE -DSDL_TESTS=TRUE -DSDL_EXAMPLES=TRUE cmake --build /tmp/build --verbose ctest --test-dir /tmp/build --no-tests=error --output-on-failure + - name: 'Verify SDL_REVISION contains SDL-' + run: | + set -e + if test "x$(strings /tmp/build/libSDL3.so.0 | grep SDL- | wc -l)" != x1; then + echo "SDL- string not found: must be present in SDL_REVISION" + exit 1 + fi dmg: needs: [src]