fmt/.github/workflows/linux.yml

33 lines
707 B
YAML
Raw Normal View History

2020-11-03 18:45:16 +00:00
name: linux
2020-11-03 18:04:28 +00:00
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
2020-11-03 18:45:16 +00:00
runs-on: ubuntu-18.04
2020-11-03 19:41:25 +00:00
strategy:
matrix:
cxx: [g++-4.8, g++-8]
2020-11-03 18:04:28 +00:00
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
2020-11-03 19:41:25 +00:00
run: apt install ${{matrix.cxx}}
2020-11-03 18:04:28 +00:00
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C $BUILD_TYPE