From c662e9b5a715049f0921a4f5947a4c3f8b4f1b15 Mon Sep 17 00:00:00 2001 From: Dennis Shilko Date: Thu, 5 Sep 2024 18:58:40 +0300 Subject: [PATCH 1/2] fix Windows CI - path to tests.exe --- .github/workflows/cmake-multi-platform.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index f9e838b..7651db2 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -95,4 +95,10 @@ jobs: - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }} # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: tests/tests + run: tests/tests.exe + run: | + if [[ "$RUNNER_OS" == "Windows" ]]; then + tests/tests.exe + else + tests/tests + fi From c3430d698a32106c60bcafd3fdb0f8e77e6c7bbf Mon Sep 17 00:00:00 2001 From: Dennis Shilko Date: Thu, 5 Sep 2024 19:08:16 +0300 Subject: [PATCH 2/2] fix test path --- .github/workflows/cmake-multi-platform.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 7651db2..5bcef6b 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -95,10 +95,9 @@ jobs: - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }} # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: tests/tests.exe run: | if [[ "$RUNNER_OS" == "Windows" ]]; then tests/tests.exe else tests/tests - fi + fi