SDL: ci: use Ninja generator in hop of accelerating the build

From 2e47016b01a77c33134a330089fcf2d41838b162 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 1 Nov 2022 15:28:57 +0100
Subject: [PATCH] ci: use Ninja generator in hop of accelerating the build

---
 .github/workflows/emscripten.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 5f41cb53d551..bb8a134d4efb 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -10,6 +10,10 @@ jobs:
       - uses: mymindstorm/setup-emsdk@v10
         with:
           version: 2.0.32
+      - name: Install ninja
+        run: |
+          sudo apt-get -y update
+          sudo apt-get install -y ninja-build
       - name: Configure CMake
         run: |
           emcmake cmake -S . -B build \
@@ -17,7 +21,8 @@ jobs:
             -DSDL_TESTS=ON \
             -DSDL_INSTALL_TESTS=ON \
             -DCMAKE_BUILD_TYPE=Release \
-            -DCMAKE_INSTALL_PREFIX=prefix
+            -DCMAKE_INSTALL_PREFIX=prefix \
+            -GNinja
       - name: Build
         run: cmake --build build/ --verbose
       - name: Run build-time tests