SDL_rtf: ci: setup SDL dependencies after installing dependencies

From 3c3321eda7c50d357292c663bf36a60e4fd2906d Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 8 Apr 2025 21:17:21 +0200
Subject: [PATCH] ci: setup SDL dependencies after installing dependencies

---
 .github/workflows/main.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index df307d4..4754b02 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -44,15 +44,6 @@ jobs:
           ${{ matrix.platform.msys-env }}-perl
           ${{ matrix.platform.msys-env }}-pkg-config
           ${{ matrix.platform.msys-env }}-zlib
-    - name: Set up SDL
-      id: sdl
-      uses: libsdl-org/setup-sdl@main
-      with:
-        cmake-generator: Ninja
-        version: 3-head
-        version-sdl-ttf: 3-head
-        sdl-test: true
-        shell: ${{ matrix.platform.shell }}
     - name: Setup Macos dependencies
       if: ${{ runner.os == 'macOS' }}
       run: |
@@ -72,6 +63,15 @@ jobs:
           libharfbuzz-dev \
           pkg-config \
           ${NULL+}
+    - name: Set up SDL
+      id: sdl
+      uses: libsdl-org/setup-sdl@main
+      with:
+        cmake-generator: Ninja
+        version: 3-head
+        version-sdl-ttf: 3-head
+        sdl-test: true
+        shell: ${{ matrix.platform.shell }}
     - uses: actions/checkout@v4
       with:
         submodules: recursive