2023-12-05 18:11:22 +00:00
|
|
|
name: Build
|
2023-11-17 15:45:32 +00:00
|
|
|
on: [pull_request]
|
2019-11-14 18:40:06 +00:00
|
|
|
jobs:
|
2024-01-25 15:50:17 +00:00
|
|
|
build-mac-xcodebuild:
|
|
|
|
name: Mac UI / xcodebuild / ${{ matrix.os }}
|
2023-12-14 23:19:59 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-20 18:21:42 +00:00
|
|
|
os: [macos-12, macos-13, macos-14]
|
2023-12-14 23:19:59 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2023-12-05 17:49:54 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Make
|
|
|
|
working-directory: OSBindings/Mac
|
|
|
|
run: xcodebuild CODE_SIGN_IDENTITY=-
|
2024-01-25 15:50:17 +00:00
|
|
|
build-sdl-cmake:
|
|
|
|
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 }}
|
2023-12-14 23:19:59 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-03-19 18:27:46 +00:00
|
|
|
os: [macos-14, ubuntu-latest]
|
2023-12-14 23:19:59 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2019-11-14 18:40:06 +00:00
|
|
|
steps:
|
2023-12-05 17:42:30 +00:00
|
|
|
- name: Checkout
|
2023-12-05 17:44:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2019-11-14 18:50:03 +00:00
|
|
|
- name: Install dependencies
|
2023-12-14 23:19:59 +00:00
|
|
|
shell: bash
|
2023-12-05 17:44:37 +00:00
|
|
|
run: |
|
2023-12-14 23:19:59 +00:00
|
|
|
case $RUNNER_OS in
|
|
|
|
Linux)
|
|
|
|
sudo apt-get --allow-releaseinfo-change update
|
|
|
|
sudo apt-get --fix-missing install gcc-10 libsdl2-dev scons
|
|
|
|
;;
|
|
|
|
macOS)
|
|
|
|
brew install scons sdl2
|
|
|
|
;;
|
|
|
|
esac
|
2019-11-14 18:50:03 +00:00
|
|
|
- name: Make
|
2020-06-29 01:55:15 +00:00
|
|
|
working-directory: OSBindings/SDL
|
2023-12-14 23:19:59 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
case $RUNNER_OS in
|
|
|
|
Linux)
|
|
|
|
jobs=$(nproc --all)
|
|
|
|
;;
|
|
|
|
macOS)
|
|
|
|
jobs=$(sysctl -n hw.activecpu)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
jobs=1
|
|
|
|
esac
|
|
|
|
scons -j"$jobs"
|