-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 949 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
name: macos
on:
push:
pull_request:
branches: [ main ]
jobs:
build-and-test:
name: Build and test ${{matrix.build-type}} mode
runs-on: macos-latest
strategy:
matrix:
build-type: [Debug, Release]
steps:
- name: Clone recursively
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install LLVM/Clang
run: brew install llvm@16
- name: Configure
run: |
CXX="/usr/local/opt/llvm@16/bin/clang++" \
CXXFLAGS="-stdlib=libc++ -fexperimental-library" \
LDFLAGS="-L/usr/local/opt/llvm@16/lib/c++ -Wl,-rpath,/usr/local/opt/llvm@16/lib/c++" \
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}}
- name: Build
run: cmake --build ${{github.workspace}}/build -v
- name: Test
run: ${{github.workspace}}/build/bin/let ${{github.workspace}}/test/test.let