Skip to content

added nunavut to the common lib #76

added nunavut to the common lib

added nunavut to the common lib #76

Workflow file for this run

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: recursive
- 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-Linux -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
cmake --build --preset OCVSMD-Linux-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: recursive
- run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install gcc-multilib g++-multilib ninja-build
- run: |
cmake --preset OCVSMD-Linux -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
cmake --build --preset OCVSMD-Linux-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 }}