-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 955 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build
on: [ push, pull_request ]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install boost
uses: MarkusJx/install-boost@v2.4.4
id: install-boost
with:
boost_version: 1.83.0
platform_version: 12
toolset: clang
- name: Configure library
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
- name: Build library
run: cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
- name: Run tests
working-directory: build/test
run: ctest
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Examples
path: build/examples/*.app