-
Notifications
You must be signed in to change notification settings - Fork 376
40 lines (32 loc) · 956 Bytes
/
linux_clang.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
name: Ubuntu 22.04 (clang)
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
ASAN_OPTIONS: alloc_dealloc_mismatch=0
jobs:
build_by_clang:
strategy:
matrix:
mode: [Debug, Release]
libcxx: [OFF]
ssl: [OFF]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get install openssl
sudo apt-get install libssl-dev
- name: Configure CMake
run: CXX=clang++ CC=clang cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}} -DCINATRA_ENABLE_SSL=${{matrix.ssl}} -DBUILD_WITH_LIBCXX=${{matrix.libcxx}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.mode}} -j `nproc` -V