-
Notifications
You must be signed in to change notification settings - Fork 232
88 lines (67 loc) · 2.4 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
85
86
87
88
name: Ubuntu (gcc)
on:
push:
branches: [ master, struct_pb ]
pull_request:
branches: [ master, struct_pb ]
jobs:
ubuntu_gcc:
strategy:
matrix:
mode: [ Debug, Release ]
cpp_version: [20]
runs-on: ubuntu-22.04
steps:
- name: check out
uses: actions/checkout@v3
- name: checkout gcc version
run: gcc --version
- name: Install Protobuf and Dev Package
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: configure cmake
run: CXX=g++ CC=gcc cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
- name: build project
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }}
- name: test
working-directory: ${{ github.workspace }}/build
run: ctest -C ${{ matrix.mode }} -j 1 -V
ubuntu_gcc9:
strategy:
matrix:
mode: [ Debug, Release ]
cpp_version: [17]
runs-on: ubuntu-20.04
steps:
- name: check out
uses: actions/checkout@v3
- name: checkout gcc version
run: gcc --version
- name: configure cmake
run: CXX=g++ CC=gcc cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
- name: build project
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }}
- name: test
working-directory: ${{ github.workspace }}/build
run: ctest -C ${{ matrix.mode }} -j 1 -V
# ubuntu_gcc8:
# strategy:
# matrix:
# mode: [ Debug, Release ]
# cpp_version: [17]
# runs-on: ubuntu-20.04
# steps:
# - name: check out
# uses: actions/checkout@v3
# - name: Install GCC8
# run: |
# sudo apt update
# sudo apt install gcc-8 g++-8
# - name: checkout gcc version
# run: gcc-8 --version
# - name: configure cmake
# run: CXX=g++-8 CC=gcc-8 cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
# - name: build project
# run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }}
# - name: test
# working-directory: ${{ github.workspace }}/build
# run: ctest -C ${{ matrix.mode }} -j 1 -V