Skip to content

Commit e8849df

Browse files
committed
workflow changes
Signed-off-by: Mateusz Mazur <mateusz.mazur@e.email>
1 parent f8ecbae commit e8849df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444

4545
steps:
4646
- uses: actions/checkout@v4
47+
with:
48+
submodules: "recursive"
49+
fetch-depth: 1
4750

4851
- name: Install dependencies
4952
run: |
@@ -68,7 +71,7 @@ jobs:
6871
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
6972
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
7073
-DMODBUS_EXAMPLE=ON
71-
-DMODBUS_TEST=ON
74+
-DMODBUS_TESTS=ON
7275
-DMODBUS_COMMUNICATION=${{ matrix.os == 'windows-latest' && 'OFF' || matrix.os == 'ubuntu-latest' && 'ON' }}
7376
-S ${{ github.workspace }}
7477
@@ -77,7 +80,4 @@ jobs:
7780
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
7881

7982
- name: Test
80-
working-directory: ${{ steps.strings.outputs.build-output-dir }}
81-
# 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).
82-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
83-
run: build/tests/Google_Tests_run
83+
run: ${{ steps.strings.outputs.build-output-dir }}/tests/Google_Tests_run

0 commit comments

Comments
 (0)