2023-12-05 12:11:22 -06:00
|
|
|
name: Build
|
2023-11-17 10:45:32 -05:00
|
|
|
on: [pull_request]
|
2019-11-14 13:40:06 -05:00
|
|
|
jobs:
|
2023-12-05 11:49:54 -06:00
|
|
|
build-mac:
|
2023-12-14 17:19:59 -06:00
|
|
|
name: Mac UI on ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2023-12-05 11:49:54 -06:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Make
|
|
|
|
working-directory: OSBindings/Mac
|
|
|
|
run: xcodebuild CODE_SIGN_IDENTITY=-
|
2023-12-05 11:41:43 -06:00
|
|
|
build-sdl:
|
2023-12-14 17:19:59 -06:00
|
|
|
name: SDL UI on ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2019-11-14 13:40:06 -05:00
|
|
|
steps:
|
2023-12-05 11:42:30 -06:00
|
|
|
- name: Checkout
|
2023-12-05 11:44:01 -06:00
|
|
|
uses: actions/checkout@v4
|
2019-11-14 13:50:03 -05:00
|
|
|
- name: Install dependencies
|
2023-12-14 17:19:59 -06:00
|
|
|
shell: bash
|
2023-12-05 11:44:37 -06:00
|
|
|
run: |
|
2023-12-14 17:19:59 -06: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 13:50:03 -05:00
|
|
|
- name: Make
|
2020-06-28 18:55:15 -07:00
|
|
|
working-directory: OSBindings/SDL
|
2023-12-14 17:19:59 -06:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
case $RUNNER_OS in
|
|
|
|
Linux)
|
|
|
|
jobs=$(nproc --all)
|
|
|
|
;;
|
|
|
|
macOS)
|
|
|
|
jobs=$(sysctl -n hw.activecpu)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
jobs=1
|
|
|
|
esac
|
|
|
|
scons -j"$jobs"
|