Ver Fonte

workflows: Check we can screen-scrape the SDL_REVISION from Linux builds

Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie há 2 anos atrás
pai
commit
d4d99e8c29
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      .github/workflows/main.yml

+ 8 - 0
.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: |