Skip to content

ci: Migrate to alpine base image #8

ci: Migrate to alpine base image

ci: Migrate to alpine base image #8

Workflow file for this run

name: "C++ Lint"
on:
push:
paths-ignore:
- 'README.md'
jobs:
lint:
name: "clang-tidy"
runs-on: alpine:latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apk update
sudo apk add \
cmake \
clang-extra-tools \
boost-filesystem \
boost-python3 \
lua-dev \
fmt \
gmock \
gtest
- name: Generate compile_commands.json
run: |
mkdir -pv build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
# Check all source and header C++ files;
# ignore files in the build directory or in hidden directories
- name: Execute clang-tidy
run: find . \( \( -path './build' -o -path '*/.*' \) -prune \) -o
\( -type f -a \( -iname '*.cpp' -o -iname '*.h' \) \)
-exec echo "Linting '{}'..." \;
-exec clang-tidy -p build --warnings-as-errors='*' {} +