Skip to content

fix and more checks

fix and more checks #2

Workflow file for this run

name: build jobs
on: [push]
jobs:

Check failure on line 6 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code
- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind
- name: dependencies
run: pip install gcovr
- name: build directory
run: mkdir build
- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=Release ..
working-directory: ./build
- name: build
run: cmake --build . -j
working-directory: ./build
- name: tests
run: ctest --output-junit test_results.xml
working-directory: ./build
build_with_warnings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code
- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind
- name: dependencies
run: pip install gcovr
- name: build directory
run: mkdir build
- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_WARNINGS=ON ..
working-directory: ./build
- name: build
run: cmake --build . -j
working-directory: ./build
run_cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code
- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind
- name: dependencies
run: pip install gcovr
- name: build directory
run: mkdir build
- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
working-directory: ./build
- name: cppcheck
run: cppcheck --project=compile_commands.json --cppcheck-build-dir=./temp/cppcheck --error-exitcode=1 --enable=all
working-directory: ./build