-
Notifications
You must be signed in to change notification settings - Fork 373
84 lines (69 loc) · 2.23 KB
/
linux_gcc.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
name: Ubuntu 22.04 (gcc)
on:
push:
branches:
- main
- master
- coro_http_server
pull_request:
branches:
- main
- master
- coro_http_server
jobs:
build_by_gcc:
strategy:
matrix:
mode: [Debug, Release]
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=g++ CC=gcc cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}} -DCINATRA_ENABLE_SSL=${{matrix.ssl}}
- 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_gcc_for_liburing:
strategy:
matrix:
mode: [Release, Debug]
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=gcc --cxx=g++
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}} )
- name: Configure
run: |
CXX=g++ CC=gcc
cmake -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_BUILD_TYPE=${{matrix.mode}} \
-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