SDL: workflows: List files installed by CMake

From 85a77fb5fa1f14ef199d2a0f247385f4d39a8e92 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Tue, 3 May 2022 20:22:48 +0100
Subject: [PATCH] workflows: List files installed by CMake

This lets us compare them with Autotools more easily.

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

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e2b5252d994..fc02d8c9d76 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -82,6 +82,13 @@ jobs:
       run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
     - name: Build
       run: cmake --build build/ --config Release
+    - name: Install
+      run: |
+        set -eu
+        cmake --build build/ --config Release
+        rm -fr DESTDIR-cmake
+        DESTDIR=$(pwd)/DESTDIR-cmake cmake --install build/ --config Release
+        ( cd DESTDIR-cmake; find ) | LC_ALL=C sort -u
     - name: Configure Autotools
       if: runner.os == 'Linux'
       run: |