Pull request #208: RUM-16740 Forgot to remove snapshot #10
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: 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 }} |