-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
38 lines (38 loc) · 1.07 KB
/
.cirrus.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
# Copyright (c) Christopher Di Bella.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
task:
container:
dockerfile: config/ci/Dockerfile
cpu: 4
memory: 4G
env:
matrix:
- TRIPLET: x64-linux-libcxx-static
TOOLCHAIN: clang-libcxx
- TRIPLET: x64-linux
matrix:
- TOOLCHAIN: clang-libstdcxx
- TOOLCHAIN: gcc-libstdcxx
matrix:
- BUILD_TYPE: Debug
- BUILD_TYPE: Release
vcpkg_script:
- git clone https://github.com/Microsoft/vcpkg.git
- cd vcpkg
- ./bootstrap-vcpkg.sh -disableMetrics
- ./vcpkg --triplet ${TRIPLET}
- ./vcpkg install abseil benchmark Catch2 fmt range-v3
configure_script:
- mkdir build
- cd build
- cmake .. -GNinja
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DCMAKE_TOOLCHAIN_FILE="${PWD}vcpkg/scripts/buildsystems/vcpkg.cmake"
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="${PATH}/config/cmake/toolchains/${TOOLCHAIN}.cmake"
build_script:
- cd build
- ninja
test_script:
- cd build
- ctest -j 6 --output-on-failure