-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.29 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
strategy:
matrix:
os: [macos-latest, macos-13]
include:
- os: macos-latest
arch: arm64
include:
- os: macos-13
arch: x86
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# - name: Install LLVM and Clang
# uses: KyleMayes/install-llvm-action@v2
# with:
# version: "19.1"
- name: Install dependencies on macOS
run: |
brew install llvm
brew install boost
brew install ninja
- name: Configure CMake
run: >
cmake -B build/release
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-GNinja
-DCMAKE_C_COMPILER="$(brew --prefix llvm)/bin/clang"
-DCMAKE_CXX_COMPILER="$(brew --prefix llvm)/bin/clang++"
-DSDL_SHARED=OFF
-DSDL_STATIC=ON
-DBLEND2D_STATIC=ON
- name: Build neogurt
run: cmake --build build/release --target neogurt
- name: Generate package
run: make package
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Neogurt-${{ matrix.arch }}.dmg
path: build/release/*.dmg