mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-14 13:33:42 +00:00
Add CMake SDL builds to CI workflow.
This commit is contained in:
parent
01d9455897
commit
ad8abf2e05
44
.github/workflows/build.yml
vendored
44
.github/workflows/build.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: Build
|
name: Build
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build-mac:
|
build-mac-xcodebuild:
|
||||||
name: Mac UI on ${{ matrix.os }}
|
name: Mac UI / xcodebuild / ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest]
|
os: [macos-latest]
|
||||||
@ -13,8 +13,44 @@ jobs:
|
|||||||
- name: Make
|
- name: Make
|
||||||
working-directory: OSBindings/Mac
|
working-directory: OSBindings/Mac
|
||||||
run: xcodebuild CODE_SIGN_IDENTITY=-
|
run: xcodebuild CODE_SIGN_IDENTITY=-
|
||||||
build-sdl:
|
build-sdl-cmake:
|
||||||
name: SDL UI on ${{ matrix.os }}
|
name: SDL UI / cmake / ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
case $RUNNER_OS in
|
||||||
|
Linux)
|
||||||
|
sudo apt-get --allow-releaseinfo-change update
|
||||||
|
sudo apt-get --fix-missing install cmake gcc-10 libsdl2-dev
|
||||||
|
;;
|
||||||
|
macOS)
|
||||||
|
brew install cmake sdl2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
- name: Make
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
case $RUNNER_OS in
|
||||||
|
Linux)
|
||||||
|
jobs=$(nproc --all)
|
||||||
|
;;
|
||||||
|
macOS)
|
||||||
|
jobs=$(sysctl -n hw.activecpu)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
jobs=1
|
||||||
|
esac
|
||||||
|
cmake -S. -Bbuild -DCLK_UI=SDL -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build build -v -j"$jobs"
|
||||||
|
build-sdl-scons:
|
||||||
|
name: SDL UI / scons / ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest]
|
os: [macos-latest, ubuntu-latest]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user