ci: add Gitea Actions Linux build workflow (GL3 + OpenAL)
linux / build (push) Canceled after 0s

This commit is contained in:
2026-11-29 00:14:32 +00:00
parent e7903d7a2c
commit 784c952366
+75
View File
@@ -0,0 +1,75 @@
name: linux
on:
push:
branches:
- master
- miami
pull_request:
workflow_dispatch:
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# Full history and recursive submodules are required: CMakeLists.txt calls
# get_git_head_revision() (needs the git history) and vendor/librw, vendor/ogg,
# vendor/opus, vendor/opusfile are git submodules.
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install build deps
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
cmake \
ninja-build \
pkg-config \
libglfw3-dev \
libopenal-dev \
libsndfile1-dev \
libmpg123-dev \
libgl-dev
# GL3 renderer via vendored librw + OpenAL audio = the documented Linux configuration.
- name: Configure
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DRE3_AUDIO=OAL \
-DRE3_VENDORED_LIBRW=True \
-DLIBRW_PLATFORM=GL3 \
-DLIBRW_GL3_GFXLIB=GLFW
# No -Werror: this legacy codebase warns, and warnings must not fail the build.
- name: Build
run: |
cmake --build build --parallel "$(nproc)"
- name: Smoke check
run: |
BIN="$(find build -type f -name re3 -perm -u+x | head -1 || true)"
if [ -z "$BIN" ]; then
echo "error: no re3 executable found under build/" >&2
find build -maxdepth 3 -type f | sort >&2 || true
exit 1
fi
file "$BIN"
mkdir -p artifact
cp "$BIN" artifact/re3-linux-x64-gl3-oal
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: re3-linux-x64-gl3-oal
path: artifact/
if-no-files-found: error
retention-days: 14