Skip to content

Fix SDL3 headless build and fmt Apple Clang 21 compilation issues #13

Fix SDL3 headless build and fmt Apple Clang 21 compilation issues

Fix SDL3 headless build and fmt Apple Clang 21 compilation issues #13

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build-linux:
name: Linux (GCC)
runs-on: ubuntu-24.04
strategy:
matrix:
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ pkg-config libgl-dev libvulkan-dev zlib1g-dev
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build build -j$(nproc)
- name: Verify binary
run: test -f build/YAPS1
build-linux-clang:
name: Linux (Clang)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake clang pkg-config libgl-dev libvulkan-dev zlib1g-dev
- name: Configure
run: CC=clang CXX=clang++ cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build -j$(nproc)
build-windows:
name: Windows (MSVC)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release
- name: Verify binary
run: Test-Path build/Release/YAPS1.exe
build-macos:
name: macOS (Clang)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build -j$(sysctl -n hw.ncpu)