Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54c24088f0 | ||
|
|
2d3fc26827 |
@@ -8,9 +8,49 @@ on:
|
||||
|
||||
env:
|
||||
PBO_NAME: "KPLib-Ruha.ruha.pbo"
|
||||
SQFVM_VERSION: "v2026.04.03-ed9f5f5"
|
||||
SQFVM_URL: "https://github.com/SQFvm/runtime/releases/download/v2026.04.03-ed9f5f5/sqfvm_linux_x64_gcc.zip"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download SQFVM
|
||||
run: |
|
||||
curl -sL "$SQFVM_URL" -o /tmp/sqfvm.zip
|
||||
unzip -o /tmp/sqfvm.zip -d /tmp/sqfvm
|
||||
chmod +x /tmp/sqfvm/sqfvm_linux_x64_gcc/sqfvm
|
||||
|
||||
- name: Run SQFVM lint
|
||||
run: |
|
||||
SRC="$(realpath src)"
|
||||
ARGS=()
|
||||
while IFS= read -r -d '' f; do
|
||||
ARGS+=(-i "$f")
|
||||
done < <(find "$SRC" -name "*.sqf" -print0)
|
||||
/tmp/sqfvm/sqfvm_linux_x64_gcc/sqfvm \
|
||||
-a --parse-only --no-execute-print \
|
||||
--input-config "$SRC/description.ext" \
|
||||
"${ARGS[@]}" 2>&1 | tee lint_output.log
|
||||
# Filter known false positive: SQFVM config parser chokes on & in author string
|
||||
if grep -v "description.ext" lint_output.log | grep -q "^\[ERR\]"; then
|
||||
echo "::error::SQFVM found syntax errors"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# - name: Upload lint log
|
||||
# if: always()
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: sqfvm-lint.log
|
||||
# path: lint_output.log
|
||||
# if-no-files-found: warn
|
||||
|
||||
pack:
|
||||
needs: [lint]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
@@ -115,7 +115,7 @@ opfor_troup_transports = [
|
||||
"gm_ge_army_fuchsa0_engineer_win", // Fuchs (Engineer)
|
||||
"gm_ge_army_fuchsa0_reconnaissance_win", // Fuchs (Recon, MILAN)
|
||||
"gm_ge_army_m113a1g_apc_win", // M113A3 (MG3)
|
||||
"gm_ge_army_m113a1g_apc_milan_win" // M113A3 (MILAN)
|
||||
"gm_ge_army_m113a1g_apc_milan_win", // M113A3 (MILAN)
|
||||
"gm_ge_army_ch53g" // CH-53G
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user