-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (46 loc) · 1.72 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and Test
on: [push, workflow_dispatch]
jobs:
build:
strategy:
matrix:
xcode-version: [14.3.1, 15.0.1]
runs-on: [macos-13]
steps:
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode-version }}.app'
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Download LLVM and MSVC unit tests
run: |
cd test-llvm-pstl && ./bootstrap.sh && cd -
cd test-msvc-stl && ./bootstrap.sh
- name: Build and run unit tests (Debug)
run: |
mkdir build-debug
cd build-debug
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug ..
make -j all pstld-build-llvm-tests pstld-build-msvc-tests pstld-build-custom-tests
make test
- name: Build and run unit tests (Release)
run: |
mkdir build-release
cd build-release
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release ..
make -j all pstld-build-llvm-tests pstld-build-msvc-tests pstld-build-custom-tests
make test
- name: Build and run unit tests (ASAN)
run: |
mkdir build-asan
cd build-asan
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer -fsanitize=address" ..
make -j all pstld-build-llvm-tests pstld-build-msvc-tests pstld-build-custom-tests
make test
- name: Build and run unit tests (UBSAN)
run: |
mkdir build-ubsan
cd build-ubsan
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer -fsanitize=undefined" ..
make -j all pstld-build-llvm-tests pstld-build-msvc-tests pstld-build-custom-tests
make test