Skip to content

Bump actions/checkout from 3.5.2 to 4.0.0 #159

Bump actions/checkout from 3.5.2 to 4.0.0

Bump actions/checkout from 3.5.2 to 4.0.0 #159

Workflow file for this run

name: Linux GCC
env:
CMAKE_VERSION: 3.16.x
CMAKE_BUILD_TYPE: Release
CMAKE_BUILD_PREFIX: "${{ github.workspace }}/build"
on:
push:
pull_request:
jobs:
# Checkout apply clang-format and upload artifact
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler-version: [[gcc-9, g++-9], [gcc-10, g++-10]]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: '${{env.CMAKE_VERSION}}'
- name: Install elog
run: sudo apt-get install elog
- name: Run elogd
run: sudo elogd -p 4444 -x -D
- name: Configure
env:
CC: ${{ matrix.compiler-version[0] }}
CXX: ${{ matrix.compiler-version[1] }}
run: cmake -S ${{ github.workspace }} -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }}
- name: Build
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2
- name: Run tests
working-directory: ${{ env.CMAKE_BUILD_PREFIX }}
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} -j2 -VV --output-on-failure