forked from freeserf/freeserf
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.02 KB
/
macos.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
47
48
49
50
51
52
53
54
55
56
57
name: macos
on:
pull_request:
push:
release:
types: published
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
buildtype: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: |
brew install sdl2
brew install sdl2_mixer
brew install sdl2_image
- name: Configure FreeSerf
run: |
cmake -B build -G "Unix Makefiles"
- name: Check style
run: |
cd build
make check_style
- name: Build FreeSerf
run: |
cd build
make
- name: Run Tests
run: |
cd build
make test
- name: Pack FreeSerf
run: |
cd build
make package
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FreeSerf-${{ matrix.buildtype }}
path: ./build/FreeSerf.dmg