-
Notifications
You must be signed in to change notification settings - Fork 74
32 lines (26 loc) · 998 Bytes
/
build_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
name: Build - MacOS
on: [push, pull_request, workflow_dispatch]
jobs:
macos:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-11
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: brew install SDL2 SDL2_image SDL2_mixer
- name: Configure
run: cmake -B build -DUSE_SDL2_LIBS=ON -DUSE_PNG_SAVE=ON -DSMW_INSTALL_PORTABLE=ON
- name: Build
run: cmake --build build --verbose
- name: Package
run: |
cmake --install build --prefix supermariowar --strip
rm -rf supermariowar/include supermariowar/lib
zip -r "supermariowar_$(date +%F)_macos.zip" supermariowar
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: supermariowar_macos
path: supermariowar_*_macos.zip