El rng #133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master and dev branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/ | |
if: "!contains(github.event.commits[0].message, '[skip ubuntu]')" | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: sudo apt update && sudo apt install gcc-11 g++-11 lcov | |
shell: bash | |
- name: Configure cmake | |
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | |
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | |
run: cmake -B ${{github.workspace}}/build -D ENABLE_COVERAGE=ON | |
shell: bash | |
env: | |
CC: gcc-11 | |
CXX: g++-11 | |
- name: Build all applications | |
run: cmake --build ${{github.workspace}}/build | |
- name: Run tests | |
run: ctest --test-dir ${{github.workspace}}/build/tests | |
- name: Coverage | |
shell: bash | |
run: cd ${{github.workspace}}/build && make coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |