chore: remove unused empty files for now #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: test (${{ matrix.os }}, Debug) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup CMake | |
| uses: jwlawson/actions-setup-cmake@v1 | |
| with: | |
| cmake-version: 3.28.x | |
| - name: Setup Linux compiler | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y g++ gcc | |
| - name: Configure | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build -j 4 | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure | |
| code-quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install tools | |
| run: sudo apt-get update && sudo apt-get install -y cppcheck clang-format-14 | |
| - name: Check formatting | |
| run: | | |
| find include src examples tests -type f \( -name "*.cpp" -o -name "*.hpp" \) -exec clang-format-14 -i {} \; | |
| git diff --exit-code | |
| - name: Configure (for cppcheck) | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: Run cppcheck | |
| run: | | |
| set +e | |
| cppcheck \ | |
| --project=build/compile_commands.json \ | |
| --enable=warning,style,performance,portability \ | |
| --inline-sup=cppcheck.txt \ | |
| --suppress=unmatchedSuppression \ | |
| --suppress=missingIncludeSystem \ | |
| --suppress=missingInclude \ | |
| --suppress=unusedFunction \ | |
| --suppress=syntaxError \ | |
| --suppress=preprocessorErrorDirective \ | |
| -ibuild \ | |
| -itests | |
| echo "==== cppcheck.txt ====" | |
| cat cppcheck.txt || true | |
| package: | |
| name: Dev Package (Linux) | |
| runs-on: ubuntu-latest | |
| needs: [test, code-quality] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup CMake | |
| uses: jwlawson/actions-setup-cmake@v1 | |
| with: | |
| cmake-version: 3.28.x | |
| - name: Configure install | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=dist | |
| - name: Build + install | |
| run: | | |
| cmake --build build -j 4 | |
| cmake --install build | |
| - name: Archive | |
| run: tar -czf vextr-dev-linux.tar.gz dist | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vextr-dev-linux | |
| path: vextr-dev-linux.tar.gz | |
| retention-days: 5 |