-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 721 Bytes
/
ci.yml
File metadata and controls
33 lines (26 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build & Test
on:
push:
branches:
- master
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: |
brew install cmake ninja sdl2 sdl2_ttf sdl2_image sdl2_mixer
- name: Create build directory
run: mkdir build
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=$(brew --prefix)/bin/ninja -G Ninja -S . -B build
- name: Link
run: ninja
working-directory: build
- name: Test
run: ctest --output-on-failure
working-directory: build