mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-15 20:31:36 +00:00
Update GitHub workflow: also build SDL UI on macOS
This commit is contained in:
parent
def1f90d86
commit
8256500877
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -2,8 +2,11 @@ name: Build
|
|||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build-mac:
|
build-mac:
|
||||||
name: Build Mac UI
|
name: Mac UI on ${{ matrix.os }}
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -11,15 +14,38 @@ jobs:
|
|||||||
working-directory: OSBindings/Mac
|
working-directory: OSBindings/Mac
|
||||||
run: xcodebuild CODE_SIGN_IDENTITY=-
|
run: xcodebuild CODE_SIGN_IDENTITY=-
|
||||||
build-sdl:
|
build-sdl:
|
||||||
name: Build SDL UI
|
name: SDL UI on ${{ matrix.os }}
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
case $RUNNER_OS in
|
||||||
|
Linux)
|
||||||
sudo apt-get --allow-releaseinfo-change update
|
sudo apt-get --allow-releaseinfo-change update
|
||||||
sudo apt-get --fix-missing install gcc-10 libsdl2-dev scons
|
sudo apt-get --fix-missing install gcc-10 libsdl2-dev scons
|
||||||
|
;;
|
||||||
|
macOS)
|
||||||
|
brew install scons sdl2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
- name: Make
|
- name: Make
|
||||||
working-directory: OSBindings/SDL
|
working-directory: OSBindings/SDL
|
||||||
run: scons -j$(nproc --all)
|
shell: bash
|
||||||
|
run: |
|
||||||
|
case $RUNNER_OS in
|
||||||
|
Linux)
|
||||||
|
jobs=$(nproc --all)
|
||||||
|
;;
|
||||||
|
macOS)
|
||||||
|
jobs=$(sysctl -n hw.activecpu)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
jobs=1
|
||||||
|
esac
|
||||||
|
scons -j"$jobs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user