Skip to content

Commit aecbc71

Browse files
committed
ci: add macos build action
1 parent 3fe750f commit aecbc71

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- '.github/**'
10+
- 'CMakeLists.txt'
11+
pull_request:
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'tests/**'
16+
- '.github/**'
17+
- 'CMakeLists.txt'
18+
19+
jobs:
20+
build:
21+
runs-on: macos-12
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: 'recursive'
27+
28+
- name: Install dependencies
29+
run: |
30+
brew install cmake ninja
31+
32+
- name: Create build directory
33+
run: mkdir build
34+
35+
- name: Configure CMake
36+
run: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=$(brew --prefix)/bin/ninja -G Ninja -S . -B build
37+
38+
- name: Link
39+
run: ninja
40+
working-directory: build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
# Build files
77
/cmake-build-debug
88
/example/cmake-build-debug
9+
10+
11+
/build

0 commit comments

Comments
 (0)