IPC via abstract unix domain sockets #69
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: Test Workflow | |
on: [push, pull_request] | |
env: | |
LLVM_VERSION: 18 | |
jobs: | |
debug: | |
runs-on: ubuntu-24.04 | |
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 | |
with: | |
submodules: true | |
- run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh $LLVM_VERSION | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt-get -y install gcc-multilib g++-multilib ninja-build clang-tidy-$LLVM_VERSION | |
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-$LLVM_VERSION 50 | |
clang-tidy --version | |
- run: | | |
cmake --preset OCVSMD-Debian -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }} | |
cmake --build --preset OCVSMD-Debian-Debug | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: ${{github.job}}_${{matrix.toolchain}} | |
path: ${{github.workspace}}/**/* | |
retention-days: 2 | |
optimizations: | |
runs-on: ubuntu-24.04 | |
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 | |
with: | |
submodules: true | |
- run: | | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt install gcc-multilib g++-multilib ninja-build | |
- run: | | |
cmake --preset OCVSMD-Debian -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }} | |
cmake --build --preset OCVSMD-Debian-Release | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: ${{github.job}}_${{matrix.toolchain}}_${{matrix.build_type}} | |
path: ${{github.workspace}}/**/* | |
retention-days: 2 | |
style_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DoozyX/[email protected] | |
with: | |
source: './test ./src' | |
extensions: 'c,h,cpp,hpp' | |
clangFormatVersion: ${{ env.LLVM_VERSION }} |