github build action

This commit is contained in:
2025-02-12 08:50:06 -06:00
parent c25c52faa0
commit 93d5e19302

50
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Build (Release + Cross)
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# 1) Native Linux build
- os: ubuntu-latest
name: "Linux (Release)"
target: "release"
steps:
- name: Check Out Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Meson and Ninja
run: |
python -m pip install --upgrade pip
pip install meson ninja
- name: Install Dependencies for Cross (mingw)
if: ${{ matrix.target == 'crosswin' }}
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
# Add any other packages needed for cross compilation
- name: Build
run: make ${{ matrix.target }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}-artifacts
# If your build output folders differ, adjust accordingly:
path: |
build_dbg
build_release
build_win