-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (35 loc) · 1.12 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
name: Build MacOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [synchronize, opened, reopened, ready_for_review]
workflow_dispatch:
concurrency:
group: build-MacOS-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Install depends
run: |
brew install cmake flex bison
- name: Prebuild
run: |
mkdir build && cd build
CC=gcc-12 CXX=g++-12 cmake ../ -DCMAKE_BUILD_TYPE=Prebuild -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex
make
- name: Build
run: |
cd build
CC=gcc-12 CXX=g++-12 cmake ../ -DCMAKE_BUILD_TYPE=Release -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex
make
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: verifydtapn-osx64
path: '${{github.workspace}}/build/verifydtapn/bin/verifydtapn-osx64'