Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 6 additions & 24 deletions .github/workflows/run-tests-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,31 @@

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:
- name: Checkout code
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

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
27 changes: 10 additions & 17 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,44 @@

jobs:
testing:
runs-on: self-hosted
runs-on: ubuntu-latest
container: hyperwin/hcpu-ci:debian-unstable
name: Run full test suite

steps:
- name: Checkout code
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

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
8 changes: 5 additions & 3 deletions .github/workflows/version-increment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -55,4 +57,4 @@ jobs:
git add .
git commit -m "[auto]: Increment minor version"
git push origin master


2 changes: 1 addition & 1 deletion dist/googletest
Submodule googletest updated 34 files
+2 −2 CMakeLists.txt
+2 −2 MODULE.bazel
+7 −4 README.md
+5 −6 WORKSPACE
+47 −29 ci/linux-presubmit.sh
+7 −4 ci/macos-presubmit.sh
+25 −13 ci/windows-presubmit.bat
+45 −45 docs/advanced.md
+2 −1 docs/reference/actions.md
+5 −4 docs/reference/matchers.md
+23 −6 googlemock/include/gmock/gmock-actions.h
+7 −4 googlemock/include/gmock/gmock-matchers.h
+4 −5 googlemock/include/gmock/gmock-more-actions.h
+0 −5 googlemock/include/gmock/internal/gmock-internal-utils.h
+3 −3 googlemock/test/gmock-actions_test.cc
+39 −10 googlemock/test/gmock-more-actions_test.cc
+3 −4 googlemock/test/gmock-spec-builders_test.cc
+1 −1 googletest/README.md
+1 −1 googletest/cmake/internal_utils.cmake
+7 −0 googletest/include/gtest/gtest-assertion-result.h
+33 −34 googletest/include/gtest/gtest-param-test.h
+61 −65 googletest/include/gtest/gtest-typed-test.h
+2 −2 googletest/include/gtest/gtest.h
+26 −22 googletest/include/gtest/internal/gtest-internal.h
+2 −64 googletest/include/gtest/internal/gtest-port.h
+11 −27 googletest/src/gtest.cc
+0 −1 googletest/test/BUILD.bazel
+19 −17 googletest/test/googletest-json-output-unittest.py
+7 −1 googletest/test/googletest-printers-test.cc
+2 −2 googletest/test/googletest-setuptestsuite-test_.cc
+3 −4 googletest/test/gtest_unittest.cc
+45 −43 googletest/test/gtest_xml_output_unittest.py
+5 −1 googletest/test/gtest_xml_output_unittest_.cc
+3 −3 googletest_deps.bzl