Ver código fonte

fix(workflows): use Ubuntu 22.04 for BFV legacy server testing

BFV (Battlefield: Vietnam) requires glibc 2.31 or older but Ubuntu 24.04
ships glibc 2.39, causing SteamCMD runtime failures.

Update details-check workflow to:
- Add runner field to matrix generation
- BFV uses ubuntu-22.04 (glibc 2.31 compatible)
- Other servers continue on ubuntu-latest (24.04)

This ensures BFV tests pass in CI while keeping modern servers on
current GitHub Actions runners.
Daniel Gibbs 1 mês atrás
pai
commit
964d9640ba

+ 8 - 0
.github/workflows/details-check-generate-matrix.sh

@@ -14,10 +14,18 @@ while read -r line; do
 	export gamename
 	export gamename
 	distro=$(echo "$line" | awk -F, '{ print $4 }')
 	distro=$(echo "$line" | awk -F, '{ print $4 }')
 	export distro
 	export distro
+	# Legacy servers that require Ubuntu 22.04 or older
+	if [ "${shortname}" == "bfv" ]; then
+		runner="ubuntu-22.04"
+	else
+		runner="ubuntu-latest"
+	fi
 	{
 	{
 		echo -n "{";
 		echo -n "{";
 		echo -n "\"shortname\":";
 		echo -n "\"shortname\":";
 		echo -n "\"${shortname}\"";
 		echo -n "\"${shortname}\"";
+		echo -n ",\"runner\":";
+		echo -n "\"${runner}\"";
 		echo -n "},";
 		echo -n "},";
 	} >> "shortnamearray.json"
 	} >> "shortnamearray.json"
 done < <(tail -n +2 serverlist.csv)
 done < <(tail -n +2 serverlist.csv)

+ 1 - 1
.github/workflows/details-check.yml

@@ -37,7 +37,7 @@ jobs:
     if: github.repository_owner == 'GameServerManagers'
     if: github.repository_owner == 'GameServerManagers'
     needs: create-matrix
     needs: create-matrix
     continue-on-error: true
     continue-on-error: true
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.runner }}
 
 
     strategy:
     strategy:
       matrix: ${{ fromJSON(needs.create-matrix.outputs.matrix) }}
       matrix: ${{ fromJSON(needs.create-matrix.outputs.matrix) }}