SDL: CI: change FreeBSD CI runner to cross-platform-actions.

From fcd0c9843e7268c685967fad64ec5ad0067cb2b5 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 26 Oct 2023 01:03:56 +0300
Subject: [PATCH] CI: change FreeBSD CI runner to cross-platform-actions.

---
 .../{vmactions.yml => cpactions.yml}          | 23 ++++++++++---------
 1 file changed, 12 insertions(+), 11 deletions(-)
 rename .github/workflows/{vmactions.yml => cpactions.yml} (70%)

diff --git a/.github/workflows/vmactions.yml b/.github/workflows/cpactions.yml
similarity index 70%
rename from .github/workflows/vmactions.yml
rename to .github/workflows/cpactions.yml
index 50eb5e8f405d..9b3a905be213 100644
--- a/.github/workflows/vmactions.yml
+++ b/.github/workflows/cpactions.yml
@@ -1,20 +1,23 @@
-name: Build (VM Actions)
+name: Build (C/P Actions)
 
 on: [push, pull_request]
 
 jobs:
   freebsd:
-    runs-on: macos-12
+    runs-on: ubuntu-latest
     name: FreeBSD
     timeout-minutes: 30
     steps:
     - uses: actions/checkout@v3
     - name: Build
-      uses: vmactions/freebsd-vm@v0
+      uses: cross-platform-actions/action@v0.19.1
       with:
-        usesh: true
-        prepare: |
-          pkg install -y \
+        operating_system: freebsd
+        version: '13.2'
+        shell: bash
+        run: |
+          sudo pkg update
+          sudo pkg install -y \
               gmake \
               pkgconf \
               libXcursor \
@@ -34,17 +37,15 @@ jobs:
               libinotify \
               alsa-lib \
               jackit \
-              nas \
               pipewire \
               pulseaudio \
               sndio \
               dbus \
               zh-fcitx \
               ibus \
-              libsamplerate \
               libudev-devd
-
-        run: |
           mkdir build_autotools
-          (cd build_autotools && CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ../configure)
+          export CPPFLAGS="-I/usr/local/include"
+          export LDFLAGS="-L/usr/local/lib"
+          (cd build_autotools && ../configure --disable-static)
           gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1