Skip to content

Linting

Linting #78

Workflow file for this run

name: Data dump transformer build
on:
push:
branches: [ master ]
paths:
- transformer/*
pull_request:
branches: [ master ]
paths:
- transformer/*
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{matrix.os}}
defaults:
run:
working-directory: ./transformer/
steps:
- uses: actions/checkout@main
- name: Install deps (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update && sudo apt upgrade -y
- name: Print environment
run: |
cmake --version
- name: Run build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DSEDD_SANITIZE=ON
cmake --build . -j 2
- name: Run test
run: |
cd build
cmake --build . -j 2 --target test
- name: Check clang-tidy
if: matrix.os == 'ubuntu-latest'
run: |
mkdir build-lint
cd build-lint
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINT=ON -DLINT_WARNINGS_ARE_ERRORS=ON
cmake --build . -j 2