Skip to content

add os specific headers #334

add os specific headers

add os specific headers #334

Workflow file for this run

name: cmake
on:
push:
branches:
- 'main'
- 'dev**'
pull_request:
branches:
- 'main'
env:
BUILD_TYPE: RelWithDebInfo
jobs:
cmake:
name: cmake
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, self-hosted-ubuntu-22.04-arm64, self-hosted-rhel-8, windows-2019, windows-2022, macos-13, macos-14]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Dependencies
run: sudo apt-get install libelf-dev ninja-build
if: contains(matrix.os, 'self-hosted') == false && contains(matrix.os, 'ubuntu') == true
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMWR_BUILD_TESTS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j $(nproc)
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure