Skip to content

Fix CI software versions #128

Fix CI software versions

Fix CI software versions #128

Workflow file for this run

name: CMake
on:
push:
branches:
- main
- 'releases/**'
pull_request:
jobs:
build:
strategy:
matrix:
runs-on: ['ubuntu-latest']
compiler: ['g++', 'clang++']
config: ['DEBUG', 'RELEASE']
cxxflags: ['-Wall -Werror -pedantic']
include:
- runs-on: 'windows-latest'
compiler: cl.exe
config: 'DEBUG'
cxxflags: /W4 /WX
- runs-on: 'windows-latest'
compiler: cl.exe
config: 'RELEASE'
cxxflags: /W4 /WX
runs-on: ${{ matrix.runs-on }}
name: Build (${{ matrix.compiler }}, ${{ matrix.config }})
steps:
- uses: actions/checkout@v2
- name: Configure
env:
CXX: ${{ matrix.compiler }}
CXXFLAGS: ${{ matrix.cxxflags }}
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.config }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.config }}
- name: Test
working-directory: ${{ github.workspace }}/build
run: ctest --no-tests=error -C ${{ matrix.config }}
- name: Install
working-directory: ${{ github.workspace }}/build
if: ${{ matrix.config }} == 'RELEASE'
run: cmake --install ${{ github.workspace }}/build --prefix ${{ github.workspace }}/install --config ${{ matrix.config }}
- name: Archive
uses: actions/upload-artifact@v2
if: ${{ matrix.config }} == 'RELEASE'
with:
name: build-${{ matrix.compiler }}
path: ${{ github.workspace }}/install