-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1.05 KB
/
build_linux.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
name: Linux-Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "dev" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build-on-linux:
# ubuntu-22.04 has liburing-dev.
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install build toolchain
run: |
sudo apt install -y ninja-build liburing-dev
shell: bash
- name: Configure CMake
# We use ninja-build
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
- name: Build
# Build rioring library
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target rioring
- name: Test
# Using google test
# The basic test is [io start -> prepare client -> echo packet between server and client -> io stop]
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target BasicTest
${{github.workspace}}/build/test/BasicTest