From bbc22353ca27b2f9c525128c5af30ccdb50b9008 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 8 Mar 2025 12:08:35 -0500 Subject: [PATCH] CI --- .github/workflows/all-builds.yml | 12 ++++++++---- .github/workflows/linting.yml | 4 ++-- tools/build-qt.sh | 3 +++ tools/format.sh | 8 ++++++++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 tools/build-qt.sh create mode 100755 tools/format.sh diff --git a/.github/workflows/all-builds.yml b/.github/workflows/all-builds.yml index fbc3abe..660e2fb 100644 --- a/.github/workflows/all-builds.yml +++ b/.github/workflows/all-builds.yml @@ -10,6 +10,7 @@ env: jobs: Qtk: + name: Qtk Applications env: CONFIG: -DQTK_SUBMODULES=ON -DQTK_DEBUG=OFF -DQTK_CCACHE=OFF -DQTK_GUI=ON -DQTK_PLUGINS=OFF -DQTK_EXAMPLE=ON strategy: @@ -29,7 +30,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v2 @@ -140,6 +141,7 @@ jobs: # !build/packages/_CPack_Packages/* Qtk-Library: + name: Qtk library env: CONFIG: -DQTK_SUBMODULES=ON -DQTK_DEBUG=OFF -DQTK_CCACHE=OFF -DQTK_GUI=OFF -DQTK_PLUGINS=OFF -DQTK_EXAMPLE=OFF strategy: @@ -159,7 +161,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v2 @@ -245,6 +247,7 @@ jobs: path: install/* Qtk-Plugins: + name: Qtk Qt Designer Plugins env: CONFIG: -DQTK_SUBMODULES=ON -DQTK_DEBUG=OFF -DQTK_CCACHE=OFF -DQTK_GUI=OFF -DQTK_PLUGINS=ON -DQTK_EXAMPLE=OFF strategy: @@ -264,7 +267,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v2 @@ -292,6 +295,7 @@ jobs: run: cmake --install build/ --config Release --component qtk_plugins Qtk-Assimp-Targets: + name: Qtk Assimp Platform Targets strategy: fail-fast: false matrix: @@ -304,7 +308,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v2 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index fd01ba9..a2b5266 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -9,7 +9,7 @@ jobs: Tidy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v2 @@ -59,7 +59,7 @@ jobs: - 'src' - 'app' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: clang-format Check uses: jidicula/clang-format-action@v4.9.0 diff --git a/tools/build-qt.sh b/tools/build-qt.sh new file mode 100644 index 0000000..1329677 --- /dev/null +++ b/tools/build-qt.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + + diff --git a/tools/format.sh b/tools/format.sh new file mode 100755 index 0000000..914e7e5 --- /dev/null +++ b/tools/format.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +cd .. +cmake -B build && cmake --build build -- -j $(nproc --ignore=1) +clang-tidy -p build/ --fix --config-file=.clang-tidy \ + src/**/*.cpp src/**/*.h example-app/*.cpp example-app/*.h +clang-format -i --style=file:.clang-format \ + src/**/*.cpp src/**/*.h example-app/*.cpp example-app/*.h