Skip to content

Commit 949a847

Browse files
author
marco
committed
ci: Add macos task
1 parent 408c50d commit 949a847

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ jobs:
5656
cd ${{ github.workspace }}
5757
CI_CONFIG="ci/configs/freebsd.bash" bash ci/scripts/ci.sh
5858
59+
build-macos:
60+
runs-on: macos-latest
61+
name: build • macos
62+
63+
steps:
64+
- uses: actions/checkout@v5
65+
66+
- name: Install dependencies
67+
env:
68+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
69+
run: |
70+
brew install --quiet cmake ninja git capnp
71+
72+
- name: Run CI script
73+
run: |
74+
CI_CONFIG="ci/configs/macos.bash" bash ci/scripts/ci.sh
75+
5976
build:
6077
runs-on: ubuntu-latest
6178

ci/configs/macos.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CI_DESC="CI config for macOS"
2+
CI_DIR=build-macos
3+
export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter"
4+
CMAKE_ARGS=(-G Ninja)
5+
BUILD_ARGS=(-k 0)

0 commit comments

Comments
 (0)