mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-27 01:03:31 -04:00
CI: add Linux GCC/Clang build (with OpenGL deps + SSE4.1) (#59)
* ci: add Linux GCC/Clang workflow Add a Linux job that builds with GCC and Clang using Ninja and runs tests * ci: install OpenGL headers on Linux Fix raylib configure by installing libgl-dev in the Linux GCC/Clang job * ci: enable SSE4.1 for Linux builds Pass -msse4.1 to GCC/Clang in the Linux workflow to satisfy runtime intrinsics
This commit is contained in:
committed by
GitHub
parent
cf5f57180f
commit
8772aab5cc
@@ -3,6 +3,41 @@ name: build
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
linux-gcc-clang:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
compiler: [gcc, clang]
|
||||
|
||||
name: linux-${{ matrix.compiler }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ninja-build libgl-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
||||
export CC=gcc
|
||||
export CXX=g++
|
||||
else
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
fi
|
||||
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-msse4.1 -DCMAKE_CXX_FLAGS=-msse4.1
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --config Release
|
||||
|
||||
- name: Tests
|
||||
run: ./build/ps2xTest/ps2x_tests
|
||||
|
||||
windows-msvc:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
Reference in New Issue
Block a user