SDL: Merge commit 'd4d99e8c29da350379c991a8360d544d2c9eaa32' into main

From d4d99e8c29da350379c991a8360d544d2c9eaa32 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Fri, 21 Oct 2022 12:19:59 +0100
Subject: [PATCH] workflows: Check we can screen-scrape the SDL_REVISION from
 Linux builds

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 .github/workflows/main.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f96eb738cc52..b09ae9447a8e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -86,6 +86,10 @@ jobs:
         set -eu
         export SDL_TESTS_QUICK=1
         ctest -VV --test-dir build/
+        if test "${{ runner.os }}" = "Linux"; then
+          # This should show us the SDL_REVISION
+          strings build/libSDL2-2.0.so.0 | grep SDL-
+        fi
     - name: Install (CMake)
       if: "! matrix.platform.autotools"
       run: |
@@ -141,6 +145,10 @@ jobs:
         parallel="$(getconf _NPROCESSORS_ONLN)"
         export SDL_TESTS_QUICK=1
         make -j"${parallel}" -C build-autotools/test check LD_LIBRARY_PATH="${curdir}/build-autotools/build/.libs"
+        if test "${{ runner.os }}" = "Linux"; then
+          # This should show us the SDL_REVISION
+          strings "${curdir}/build-autotools/build/.libs/libSDL2-2.0.so.0" | grep SDL-
+        fi
     - name: Install (Autotools)
       if: matrix.platform.autotools
       run: |