-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 2.27 KB
/
unit-test.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
name: Unit Test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
gcc-debug:
runs-on: ubuntu-24.04
name: Unit Test (GCC-Debug)
steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: "longhao-li/nyaio"
ref: ${{ github.ref }}
- name: configure
run: mkdir build-gcc-debug && cd build-gcc-debug && cmake -DCMAKE_CXX_COMPILER=g++ -DNYAIO_BUILD_TESTS=ON -DNYAIO_BUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug ..
- name: build
run: cd build-gcc-debug && make -j4
- name: test
run: cd build-gcc-debug && ctest
gcc-debug-shared:
runs-on: ubuntu-24.04
name: Unit Test (GCC-Debug-Shared)
steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: "longhao-li/nyaio"
ref: ${{ github.ref }}
- name: configure
run: mkdir build-gcc-debug-shared && cd build-gcc-debug-shared && cmake -DCMAKE_CXX_COMPILER=g++ -DNYAIO_BUILD_TESTS=ON -DNYAIO_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug ..
- name: build
run: cd build-gcc-debug-shared && make -j4
- name: test
run: cd build-gcc-debug-shared && ctest
gcc-release:
runs-on: ubuntu-24.04
name: Unit Test (GCC-Release)
steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: "longhao-li/nyaio"
ref: ${{ github.ref }}
- name: configure
run: mkdir build-gcc-release && cd build-gcc-release && cmake -DCMAKE_CXX_COMPILER=g++ -DNYAIO_BUILD_TESTS=ON -DNYAIO_BUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release ..
- name: build
run: cd build-gcc-release && make -j4
- name: test
run: cd build-gcc-release && ctest
gcc-release-shared:
runs-on: ubuntu-24.04
name: Unit Test (GCC-Release-Shared)
steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: "longhao-li/nyaio"
ref: ${{ github.ref }}
- name: configure
run: mkdir build-gcc-release-shared && cd build-gcc-release-shared && cmake -DCMAKE_CXX_COMPILER=g++ -DNYAIO_BUILD_TESTS=ON -DNYAIO_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release ..
- name: build
run: cd build-gcc-release-shared && make -j4
- name: test
run: cd build-gcc-release-shared && ctest