2022-10-16 18:22:37 +00:00
|
|
|
name: macOS Latest Build
|
2023-09-05 17:23:29 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
#on: workflow_dispatch
|
2022-10-16 18:22:37 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-09-04 22:55:51 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
cmake_build: ['-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_BUILD_TYPE=Debug']
|
|
|
|
cmake_options: ['', '-DENABLE_LINK=OFF', '-DENABLE_SDL=ON']
|
2022-10-16 18:22:37 +00:00
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout the code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-09-05 17:23:29 +00:00
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v22
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-10-16 18:22:37 +00:00
|
|
|
- name: Configure
|
|
|
|
run: >-
|
2024-03-11 08:53:47 +00:00
|
|
|
nix-shell --command 'cmake -B build -G Ninja ${{ matrix.cmake_build }} -DENABLE_LTO=OFF ${{ matrix.cmake_options }}'
|
2022-10-16 18:22:37 +00:00
|
|
|
- name: Build
|
2023-09-05 17:23:29 +00:00
|
|
|
run: >-
|
|
|
|
nix-shell --command 'ninja -C build'
|