Skip to content

Commit

Permalink
Added macos build action
Browse files Browse the repository at this point in the history
  • Loading branch information
bkryza committed Jul 12, 2024
1 parent 3b10885 commit c13214e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Linux

on:
push:
Expand All @@ -8,6 +8,8 @@ on:
- 'util/**'
- 'uml/**'
- '**.md'
- '**.svg'
- '**.png'
branches-ignore:
- 'noactions/*'
pull_request:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: macos

on:
push:
paths-ignore:
- 'docs/**'
- 'packaging/**'
- 'util/**'
- 'uml/**'
- '**.md'
- '**.svg'
- '**.png'
branches-ignore:
- 'noactions/*'
pull_request:
paths-ignore:
- 'docs/**'
- 'packaging/**'
- 'util/**'
- 'uml/**'
- '**.md'
- '**.svg'
- '**.png'
branches-ignore:
- 'noactions/*'

jobs:
build-macos:
name: Build and test on macos
runs-on: macos-14

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies using homebrew
run: brew install llvm@17 libyaml cmake ccache

- name: Build and test
run: CC=/opt/homebrew/Cellar/llvm@17/17.0.6/bin/clang CXX=/opt/homebrew/Cellar@17/llvm/17.0.6/bin/clang++ CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm LLVM_CONFIG=/opt/homebrew/opt/llvm/bin/llvm-config CMAKE_GENERATOR=Ninja make test

0 comments on commit c13214e

Please sign in to comment.