Skip to content

Update GitHub Actions for Carnifex project structure #1

Update GitHub Actions for Carnifex project structure

Update GitHub Actions for Carnifex project structure #1

Workflow file for this run

name: Linux CI
on: [push, pull_request]
jobs:
build:
name: Linux / ${{ matrix.compiler }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ["clang", "gcc"]
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y \
build-essential \
cmake \
libsdl2-dev \
libvorbis-dev \
libxmp-dev \
libcurl4-openssl-dev \
libmpg123-dev \
libmad0-dev \
libflac-dev \
libopusfile-dev
- name: Build Carnifex Engine
run: make
- name: Test Engine
run: |
# Basic smoke test - check if engine starts without crashing
timeout 10s ./build-artifacts/carnifex-engine -game carnifex-game -dev || true
- name: Upload Build Artifacts
if: github.ref == 'refs/heads/carnifex' && github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: carnifex-linux-${{ matrix.compiler }}
path: build-artifacts/carnifex-engine