-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (51 loc) · 1.69 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
58
59
60
61
62
63
64
65
66
67
name: macos
on:
push:
branches: [ "develop", "release/*" ]
pull_request:
branches: [ "develop", "release/*" ]
env:
BUILD_TYPE: Release
jobs:
build-mac-intel:
runs-on: macos-12
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
brew install gperf dos2unix bison flex ninja
echo 'export PATH="$(brew --prefix bison)/bin:$PATH"' >> /Users/runner/.bashrc
export LDFLAGS="-L$(brew --prefix bison)/lib"
source ~/.bashrc
brew link bison --force
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build -G 'Ninja' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: |
cmake --build ${{github.workspace}}/build --parallel --config ${{env.BUILD_TYPE}}
build-mac-arm:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
brew install gperf dos2unix bison flex ninja
echo 'export PATH="$(brew --prefix bison)/bin:$PATH"' >> /Users/runner/.bashrc
export LDFLAGS="-L$(brew --prefix bison)/lib"
source ~/.bashrc
brew link bison --force
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build -G 'Ninja' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: |
cmake --build ${{github.workspace}}/build --parallel --config ${{env.BUILD_TYPE}}