1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
name: rampler CI
on:
push:
pull_request:
branches:
- master
env:
BUILD_TYPE: Release
jobs:
test:
strategy:
matrix:
compiler:
- g++
- g++-4.8
- clang++
- clang++-4.0
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- if: ${{ matrix.compiler == 'g++-4.8' }}
name: Setup GCC
uses: egor-tensin/setup-gcc@v1
with:
version: "4.8"
platform: x64
- if: ${{ matrix.compiler == 'clang++-4.0' }}
name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: "4.0"
platform: x64
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
env:
CXX: ${{ matrix.compiler }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }}
- name: Test
working-directory: ${{ github.workspace }}/build
run: |
bin/rampler --version
|