-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.15 KB
/
macos.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: macos
on:
push:
branches: [master]
paths-ignore:
- "**/README.*"
- "**/CONTRIBUTING.*"
pull_request:
branches: [master]
paths-ignore:
- "**/README.*"
- "**/CONTRIBUTING.*"
env:
BUILD_TYPE: Release
INSTALL_LOCATION: ".local"
jobs:
build:
runs-on: macos-11
name: ${{ github.workflow }}-${{ matrix.cxx }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
fail-fast: false
matrix:
include:
- cxx: g++-11
# AppleClang 13.0 doesn't work
# - cxx: clang++
# cxxflags: -stdlib=libc++
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Find the number of threads (macOS)
run: echo "::set-output name=THREADS::`sysctl -n hw.logicalcpu`"
id: number-of-threads
shell: bash
- uses: ./.github/build
with:
cmakePreset: ci-linux
cxx: ${{ matrix.cxx }}
cxxflags: ${{ matrix.cxxflags }}
threads: ${{ steps.number-of-threads.outputs.THREADS }}