Simplify ZeroMQ server #1112
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
clang-tidy: | |
runs-on: ubuntu-latest | |
container: egecetinn/ubuntu2204 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Configure | |
run: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -S . -B build | |
- name: Clang-tidy | |
run: run-clang-tidy -j`nproc` -p=build -header-filter=`pwd`/include/ src/*.cpp src/**/*.cpp | |
format: | |
runs-on: ubuntu-latest | |
container: egecetinn/alpine | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Run clang-format | |
run: clang-format include/*.hpp include/**/*.hpp src/*.cpp src/**/*.cpp --verbose --dry-run --Werror | |
- name: Run cppcheck | |
run: cppcheck -Iinclude/ src --verbose --enable=all --error-exitcode=1 --std=c++14 --language=c++ --suppressions-list=cppcheckSuppressions.txt --inline-suppr | |
rockylinux: | |
runs-on: ubuntu-latest | |
container: egecetinn/${{ matrix.image }} | |
strategy: | |
matrix: | |
include: | |
- image: rockylinux87 | |
- image: rockylinux87-icx | |
- image: rockylinux91 | |
- image: rockylinux91-icx | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install Test Requirements | |
run: pip3 install -r tests/data/requirements.txt | |
- name: Configure | |
run: cmake -DCMAKE_BUILD_TYPE=Release -DXXX_ENABLE_ASAN=ON -DXXX_ENABLE_USAN=ON -S . -B build | |
- name: Build | |
run: cmake --build build --parallel | |
- name: Run Tests | |
id: test-step | |
run: ctest --output-on-failure --test-dir build |