Merge pull request #31 from TAPAAL/srba-patch-1 #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install depends | |
run: | | |
brew install cmake flex bison | |
- name: Prebuild | |
run: | | |
mkdir build && cd build | |
CC=gcc-10 CXX=g++-10 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-10 CXX=g++-10 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: verifytapn-osx64 | |
path: '${{runner.workspace}}/verifytapn/build/verifytapn/bin/verifytapn-osx64' |