Add GitHub Actions CI for x86-64 and ARM64 Linux

This commit is contained in:
Kelsi 2026-02-18 17:32:46 -08:00
parent 50f9651868
commit 02fd0166e9

66
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,66 @@
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86-64
runner: ubuntu-24.04
- arch: arm64
runner: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clone ImGui
run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui
- name: Cache apt packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: apt-${{ matrix.arch }}-${{ hashFiles('.github/workflows/build.yml') }}
restore-keys: apt-${{ matrix.arch }}-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
build-essential \
pkg-config \
libsdl2-dev \
libglew-dev \
libglm-dev \
libssl-dev \
zlib1g-dev \
libavformat-dev \
libavcodec-dev \
libswscale-dev \
libavutil-dev \
libunicorn-dev \
libx11-dev
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --parallel $(nproc)
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wowee-${{ matrix.arch }}
path: build/bin/
if-no-files-found: error