Skip to content

Fix clang-tidy configuration and tidy up code #683

Fix clang-tidy configuration and tidy up code

Fix clang-tidy configuration and tidy up code #683

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Try compilation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Install clang-tidy
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
if: matrix.os == 'ubuntu-latest'
- name: configure
run: |
mkdir build
cd build
cmake ..
- name: build the library
run: cmake --build build
- name: build examples
run:
cmake --build build --target examples
- name: build with tracing enabled
run: |
sudo apt-get install -y liblttng-ust-dev
cd build
cmake -DREACTOR_CPP_TRACE=ON ..
cd ..
cmake --build build --target examples
if: matrix.os == 'ubuntu-latest'
lf-tests-pull-request:
uses: lf-lang/lingua-franca/.github/workflows/cpp-tests.yml@master
with:
runtime-ref: ${{github.ref}}
if: ${{ github.event_name == 'pull_request' }}
lf-tests-push:
uses: lf-lang/lingua-franca/.github/workflows/cpp-tests.yml@master
with:
runtime-ref: ${{github.ref_name}}
if: ${{ github.event_name == 'push' }}