-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (44 loc) · 1.35 KB
/
build.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI build
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.platform }} (${{ matrix.configuration }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
generator:
- Ninja
- Xcode
configuration: [Debug, Release]
include:
- generator: Ninja
platform: Linux
os: ubuntu-latest
- generator: Xcode
platform: macOS
os: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install build-essential g++ cmake ninja-build libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libopenmpt-dev libepoxy-dev
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
run: |
unset HOMEBREW_NO_INSTALL_FROM_API
brew update
brew upgrade || true
brew install sdl2 sdl2_image sdl2_mixer libepoxy libopenmpt
- name: Build
run: |
mkdir Hurrican/build
cd Hurrican/build
cmake -G ${{ matrix.generator }} -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} ..
cmake --build .