Skip to content

New API - Post review deployment #15

New API - Post review deployment

New API - Post review deployment #15

Workflow file for this run

name: Lint
on:
push:
branches: [ "**" ]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake']
pull_request:
branches: [ "**" ]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake']
jobs:
build:
name: Lint all cpp
runs-on: ubuntu-latest
steps:
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Create default Conan profile
run: conan profile detect
- name: Fetch up-core-api conan recipe
uses: actions/checkout@v4
with:
path: up-conan-recipes
repository: gregmedd/up-conan-recipes
- name: Build up-core-api conan package
shell: bash
run: |
conan create --version 1.5.8 up-conan-recipes/up-core-api/developer
- name: Fetch up-cpp
uses: actions/checkout@v4
with:
path: up-cpp
- name: Install conan packages for up-cpp
id: pkgs
shell: bash
run: |
cd up-cpp
conan install . --build=missing
cd build/Release/generators
grep -r 'set(.*_PACKAGE_FOLDER_RELEASE '| cut -d '"' -f2 | sort | uniq | awk '$0="-I"$0"/include"' | tr '\n' ' ' | awk '$0="includes="$0' >> "$GITHUB_OUTPUT"
- name: Run linters
uses: cpp-linter/cpp-linter-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo-root: up-cpp
style: 'file' # read .clang-format for configuration
tidy-checks: '' # Read .clang-tidy for configuration
extra-args: '-std=c++17 -Iinclude ${{ steps.pkgs.output.includes }}'