Skip to content

Happy new year! (#106) #287

Happy new year! (#106)

Happy new year! (#106) #287

Workflow file for this run

name: build
on:
push:
branches: [ main, develop, develop/*, develop*, feature*, feature/*, task*, task/*, hotfix*, hotfix/*]
pull_request:
branches: [ main, develop, develop/*, develop*, feature*, feature/* ]
jobs:
build:
name: ${{matrix.platform}} ${{matrix.compiler}} ${{matrix.build}} ${{matrix.toolset}}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04, windows-2019, macos-11]
compiler: [g++, clang++, msvc]
build: [Debug, Release]
exclude:
- platform: ubuntu-20.04
compiler: msvc
- platform: macos-11
compiler: msvc
- platform: windows-2019
compiler: g++
include:
- platform: windows-2019
compiler: clang++
toolset: -T ClangCL
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Download git submodules
run: git submodule update --init --recursive
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Install dependencies
shell: bash
working-directory: ${{runner.workspace}}/build
if: matrix.platform == 'ubuntu-20.04'
run: sudo apt update && sudo apt-get install xorg-dev libglu1-mesa-dev libx11-xcb-dev
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_DISABLE_FIND_PACKAGE_WindowsSDK=ON ${{ matrix.toolset }} -DLLRI_ENABLE_ASAN=ON
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config ${{ matrix.build }}