-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 934 Bytes
/
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
name: macOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-ubuntu:
strategy:
matrix:
include:
- name: "macOS 10.15 + Xcode 11.7"
os: macos-10.15
compiler: xcode
version: "11.7"
- name: "macOS 10.15 + Xcode 12.2"
os: macos-10.15
compiler: xcode
version: "12.2"
runs-on: ${{matrix.os}}
name: ${{matrix.name}}
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Configure Compiler
run: |
ls -ls /Applications/
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Configure Build
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cd build && make