Skip to content

format

format #579

Workflow file for this run

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 }} -DHAS_PROTOBUF=ON -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