diff --git a/.github/workflows/run-tests-feature-branch.yml b/.github/workflows/run-tests-feature-branch.yml index 08fbc89b..f6c2a64c 100644 --- a/.github/workflows/run-tests-feature-branch.yml +++ b/.github/workflows/run-tests-feature-branch.yml @@ -5,7 +5,8 @@ on: jobs: testing: - runs-on: self-hosted + runs-on: ubuntu-latest + container: hyperwin/hcpu-ci:debian-unstable if: (github.ref != 'refs/heads/master' && github.ref != 'refs/heads/dev') || !contains(github.event.head_commit.message, '[ci skip]') steps: @@ -13,41 +14,22 @@ jobs: uses: actions/checkout@v4 with: submodules: 'true' - - - name: Pull submodules - run: | - git submodule update --init --remote --recursive - - - name: Install all tools - uses: aminya/setup-cpp@v1 - with: - cmake: true - cppcheck: true - - - name: Install GTest Parallelizer - run: | - git -C "../gtest-parallel" pull || git clone https://github.com/google/gtest-parallel.git "../gtest-parallel" - name: Build and test with GCC on Release profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief rm -rf build - name: Build and test with LLVM on Release profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=clang -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_BUILD_TYPE=Release cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief - - name: Lint code - run: | - cp build/compile_commands.json . - cppcheck --project=compile_commands.json --check-level=exhaustive -idist -j4 - - name: Clean up run: | rm -rf build diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9530b53a..d3bd2a88 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -7,7 +7,8 @@ on: jobs: testing: - runs-on: self-hosted + runs-on: ubuntu-latest + container: hyperwin/hcpu-ci:debian-unstable name: Run full test suite steps: @@ -15,43 +16,35 @@ jobs: uses: actions/checkout@v4 with: submodules: 'true' - - - name: Pull submodules - run: | - git submodule update --init --remote --recursive - - - name: Install GTest Parallelizer - run: | - git -C "../gtest-parallel" pull || git clone https://github.com/google/gtest-parallel.git "../gtest-parallel" - name: Build and test with GCC on Debug profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=gcc -DCMAKE_BUILD_TYPE=Debug cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief rm -rf build - name: Build and test with GCC on Release profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief rm -rf build - name: Build and test with LLVM on Debug profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=clang -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_BUILD_TYPE=Release cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief rm -rf build - name: Build and test with LLVM on Release profile run: | cmake -S. -Bbuild -DHCPU_COMPILER=clang -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_BUILD_TYPE=Release cmake --build build --target build-all-tests-github -j4 - ../gtest-parallel/gtest-parallel build/modular_testing --workers=4 - ../gtest-parallel/gtest-parallel build/integration_testing --workers=4 + build/modular_testing --gtest_brief + build/integration_testing --gtest_brief rm -rf build diff --git a/.github/workflows/version-increment.yml b/.github/workflows/version-increment.yml index 686b3b4c..47d69962 100644 --- a/.github/workflows/version-increment.yml +++ b/.github/workflows/version-increment.yml @@ -7,7 +7,8 @@ on: jobs: versioning-patch-increment: - runs-on: self-hosted + runs-on: ubuntu-latest + container: hyperwin/hcpu-ci:debian-unstable if: "contains(github.event.head_commit.message, '[ci patch inc]')" permissions: contents: write @@ -32,7 +33,8 @@ jobs: git push origin master versioning-minor-increment: - runs-on: self-hosted + runs-on: ubuntu-latest + container: hyperwin/hcpu-ci:debian-unstable if: "contains(github.event.head_commit.message, '[ci minor inc]')" permissions: contents: write @@ -55,4 +57,4 @@ jobs: git add . git commit -m "[auto]: Increment minor version" git push origin master - \ No newline at end of file + diff --git a/dist/googletest b/dist/googletest index 2b6b042a..3fbe4db9 160000 --- a/dist/googletest +++ b/dist/googletest @@ -1 +1 @@ -Subproject commit 2b6b042a77446ff322cd7522ca068d9f2a21c1d1 +Subproject commit 3fbe4db9a39291ae8d7a9c5f1d75896bb4c5a18f