mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
Chores: - Reorganized CI into reusable workflows, removed legacy workflows, added cache-cleanup and scheduled vcpkg baseline updater. - Modernized Docker builds to multi-stage Ubuntu 24.04, added reusable Docker build and browser builder improvements. - Refined CMake presets/toolchain defaults, exposed vcpkg baseline update, and broadened dependency platform support. - Expanded linting/analysis configs and Lua syntax checks; updated ignore patterns for build/artifact files. Bug Fixes: - Various build, packaging and runtime configuration reliability fixes across Windows, Linux and macOS.
34 lines
863 B
YAML
34 lines
863 B
YAML
name: Reusable Lua Syntax
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
job:
|
|
name: Check Lua Syntax
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup LuaJIT
|
|
run: sudo apt-get update && sudo apt-get install -y luajit
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Compile Lua files
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
for root in data modules mods; do
|
|
if [[ ! -d "${root}" ]]; then
|
|
echo "Missing Lua root: ${root}" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
failed=0
|
|
while IFS= read -r -d '' file; do
|
|
echo "=== ${file} ==="
|
|
if ! luajit -b "${file}" /dev/null; then
|
|
failed=1
|
|
fi
|
|
done < <(find data modules mods -type f -name "*.lua" -print0)
|
|
exit "${failed}"
|