Skip to content

Commit 6eaff9e

Browse files
Update cmake-for-libraries.yml to agree with the changes on the build scripts
1 parent e2f1b3d commit 6eaff9e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/cmake-for-libraries.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ jobs:
4343
id: directories
4444
shell: bash
4545
run: |
46-
tests_dir="${{ github.workspace }}/tests"
47-
echo "tests-dir=$tests_dir" >> "$GITHUB_OUTPUT"
48-
echo "build-dir=$tests_dir/build" >> "$GITHUB_OUTPUT"
46+
main_dir="${{ github.workspace }}"
47+
echo "main-dir=$main_dir" >> "$GITHUB_OUTPUT"
48+
echo "build-dir=$main_dir/build" >> "$GITHUB_OUTPUT"
4949
5050
- name: Configure CMake
5151
run: >
5252
cmake -B ${{ steps.directories.outputs.build-dir }}
5353
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
5454
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
5555
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
56-
-S ${{ steps.directories.outputs.tests-dir }}
56+
-S ${{ steps.directories.outputs.main-dir }}
5757
58-
- name: Build
58+
- name: Build with CMake
5959
run: cmake --build ${{ steps.directories.outputs.build-dir }} --config ${{ matrix.build_type }}
6060

61-
- name: Test
61+
- name: Test with Ctest
6262
working-directory: ${{ steps.directories.outputs.build-dir }}
6363
run: ctest --build-config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)