-
Notifications
You must be signed in to change notification settings - Fork 373
87 lines (72 loc) · 2.41 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Ubuntu 22.04 (clang)
on:
push:
branches:
- main
- master
- cpp20_base
pull_request:
branches:
- main
- master
- cpp20_base
jobs:
build_by_clang:
strategy:
matrix:
mode: [Debug, Release]
libcxx: [OFF]
ssl: [ON, 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
ubuntu_clang_for_liburing:
strategy:
matrix:
mode: [ Release, Debug ]
libcxx: [ OFF ]
io_uring: [ ON ]
case_name: [ test_corofile ]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install liburing
run: |
wget https://github.com/axboe/liburing/archive/refs/tags/liburing-2.3.tar.gz
tar -zxvf liburing-2.3.tar.gz
cd liburing-liburing-2.3/
./configure --cc=clang --cxx=clang++
make
sudo make install
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@master
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.mode}}-ssl( ${{ matrix.ssl}} )-libcxx( ${{ matrix.libcxx}} )
- name: Configure
run: |
CXX=clang++ CC=clang
cmake -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_BUILD_TYPE=${{matrix.mode}} \
-DBUILD_WITH_LIBCXX=${{matrix.libcxx}} \
-DENABLE_FILE_IO_URING=${{matrix.io_uring}} \
-DUSE_CCACHE=${{env.ccache}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} --target ${{matrix.case_name}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.mode}} -R ${{matrix.case_name}} -j 1 `nproc` -V