Skip to content

Merge from libcyphal #142

Merge from libcyphal

Merge from libcyphal #142

Workflow file for this run

name: Main Workflow
on: [push, pull_request]
jobs:
debug:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ['clang', 'gcc']
include:
- toolchain: gcc
c-compiler: gcc
cxx-compiler: g++
- toolchain: clang
c-compiler: clang
cxx-compiler: clang++
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt install gcc-multilib g++-multilib clang-tidy
g++ --version
clang-tidy --version
- name: Configure CMake
run: >
cmake
-B ${{ github.workspace }}/build
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
.
- name: Build
working-directory: ${{github.workspace}}/build
run: make VERBOSE=1
- name: Test
working-directory: ${{github.workspace}}/build
run: make test ARGS="--verbose"
optimizations:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ['clang', 'gcc']
build_type: [Release, MinSizeRel]
include:
- toolchain: gcc
c-compiler: gcc
cxx-compiler: g++
- toolchain: clang
c-compiler: clang
cxx-compiler: clang++
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install gcc-multilib g++-multilib
- name: Configure CMake
run: >
cmake
-B ${{ github.workspace }}/build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
-DNO_STATIC_ANALYSIS=1
.
- name: Build
working-directory: ${{github.workspace}}/build
run: make VERBOSE=1
- name: Test
working-directory: ${{github.workspace}}/build
run: make test ARGS="--verbose"
style_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DoozyX/[email protected]
with:
source: '.'
exclude: './unity'
extensions: 'c,h,cpp,hpp'
clangFormatVersion: 18