瀏覽代碼

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 月之前
父節點
當前提交
964d9640ba
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 8 0
      .github/workflows/details-check-generate-matrix.sh
  2. 1 1
      .github/workflows/details-check.yml

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

@@ -14,10 +14,18 @@ while read -r line; do
 	export gamename
 	distro=$(echo "$line" | awk -F, '{ print $4 }')
 	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 "\"shortname\":";
 		echo -n "\"${shortname}\"";
+		echo -n ",\"runner\":";
+		echo -n "\"${runner}\"";
 		echo -n "},";
 	} >> "shortnamearray.json"
 done < <(tail -n +2 serverlist.csv)

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

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