-
Notifications
You must be signed in to change notification settings - Fork 13
61 lines (48 loc) · 1.5 KB
/
macos_ci.yml
File metadata and controls
61 lines (48 loc) · 1.5 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: macOS CI
on: [pull_request]
jobs:
build:
name: ${{ matrix.name }} ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
env:
CTEST_OUTPUT_ON_FAILURE: ON
CTEST_PARALLEL_LEVEL: 2
CMAKE_BUILD_TYPE: ${{ matrix.build_type }}
strategy:
fail-fast: false
matrix:
# Github Actions requires a single row to be added to the build matrix.
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
name: [macos-14-xcode-15.4]
build_type: [Debug, Release]
include:
- name: macos-14-xcode-15.4
os: macos-14
compiler: xcode
version: "15.4"
steps:
- name: Setup Compiler
run: |
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Dependencies
run: |
brew install boost
brew tap borglab/core
- name: GTSAM
run: brew install --HEAD gtsam@latest
- name: Checkout
uses: actions/checkout@v3
- name: Build Directory
run: mkdir ./build
- name: Configure
run: |
cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
working-directory: ./build
- name: Build
run: make -j$(sysctl -n hw.physicalcpu)
working-directory: ./build
- name: Test
run: make -j$(sysctl -n hw.physicalcpu) check
working-directory: ./build