Skip to content

Commit

Permalink
Create build-macos-arm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
srba authored Jul 21, 2024
1 parent 4d542c6 commit bed9c3b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-macos-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build MacOS for ARM processor
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [synchronize, opened, reopened, ready_for_review]
workflow_dispatch:

concurrency:
group: build-MacOS-ARM${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
if: github.event.pull_request.draft == false
runs-on: macos-14

steps:
- uses: actions/checkout@v2

- name: Install depends
run: |
brew install cmake flex bison
- name: Prebuild
run: |
mkdir build && cd build
CC=gcc-11 CXX=g++-11 cmake ../ -DCMAKE_BUILD_TYPE=Prebuild -DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex
make
- name: Build
run: |
cd build
CC=gcc-11 CXX=g++-11 cmake ../ -DCMAKE_BUILD_TYPE=Release -DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex
make
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: verifytapn-arm64
path: '${{runner.workspace}}/verifytapn/build/verifytapn/bin/verifytapn-osx64'

0 comments on commit bed9c3b

Please sign in to comment.