-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.2 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
name: Build
on:
push:
branches:
- gui
jobs:
macOS:
strategy:
fail-fast: true
name: macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup Homebrew packages
id: set-up-packages
run: brew install cmake imagemagick boost libxml2 wxwidgets
- name: Build
run: |
mkdir build
cd build
echo "::group::CMake"
cmake .. \
-DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=$HOMEBREW_PREFIX/include \
-DCMAKE_CXX_STANDARD_LIBRARIES=-L$HOMEBREW_PREFIX/lib \
-DWARP_SABRE_VERSION=v2.0.0.$GITHUB_RUN_NUMBER
# EOF
echo "::endgroup::"
echo "::group::Build"
cmake --build .
echo "::endgroup::"
- name: Package
run: |
mkdir warp-sabre
cp build/{cleartiles,gentiles,gentiles-gui,warp-sabre,warp-sabre-gui} AUTHORS COPYING INSTALL README \
warp-sabre
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: warp-sabre-gui-macos
path: warp-sabre