Skip to content

Pull request #209: RUM-16740 Raise main to snapshot #11

Pull request #209: RUM-16740 Raise main to snapshot

Pull request #209: RUM-16740 Raise main to snapshot #11

Workflow file for this run

name: Linux Build & Test
on:
push:
branches: [ "main" ]
jobs:
build:
name: ${{matrix.NAME}}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- BUILD_TYPE: "Release"
BUILD_SHARED_LIBS: "On"
NAME: "g++9.3 Release Dynamic x64"
CC: "gcc"
CXX: "g++"
- BUILD_TYPE: "Release"
BUILD_SHARED_LIBS: "Off"
NAME: "g++9.3 Release Static x64"
CC: "gcc"
CXX: "g++"
- BUILD_TYPE: "Release"
BUILD_SHARED_LIBS: "On"
NAME: "clang 10.0 Release Dynamic x64"
CC: "clang"
CXX: "clang++"
- BUILD_TYPE: "Release"
BUILD_SHARED_LIBS: "Off"
NAME: "clang 10.0 Release Static x64"
CC: "clang"
CXX: "clang++"
steps:
- uses: actions/checkout@v3
- name: Create Working directory
run: mkdir -p build
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.1'
- name: CMake Generation
working-directory: ${{github.workspace}}/build
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} -DOPENKIT_BUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_SHARED_LIBS=${{matrix.BUILD_SHARED_LIBS}} .. || exit 1
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}}
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.BUILD_TYPE}} --timeout 600 --output-on-failure
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}