fmt/.github/workflows/linux.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 20: mapping key "run" already defined at line 19
2020-11-03 11:41:25 -08:00

33 lines
707 B
YAML

name: linux
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
cxx: [g++-4.8, g++-8]
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
run: apt install ${{matrix.cxx}}
- 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