forked from khva/kvstor
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 926 Bytes
/
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
37
38
39
40
name: linux
on: [push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v3
- name: Create Build Environment
run: |
sudo apt update
sudo apt install mm-common g++-11
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
env:
CXX: g++-11
run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} $GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: |
threads=`nproc`
cmake --build . --config ${{matrix.build_type}} --parallel $threads
- name: Run Tests
working-directory: ${{runner.workspace}}/build
run: |
pwd
ctest -C ${{matrix.build_type}} -V --output-on-failure