Skip to content

Commit 42fa7d7

Browse files
committed
Fix subdir package paths in build config
1 parent 814d509 commit 42fa7d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
22
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3-
name: CMake on multiple platforms
3+
name: Single package builds, CMake multi-platform
44

55
on: [push]
66

@@ -51,7 +51,7 @@ jobs:
5151
id: strings
5252
shell: bash
5353
run: |
54-
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
54+
echo "build-output-dir=${{ github.workspace }}/{{ matrix.dir }}/build" >> "$GITHUB_OUTPUT"
5555
5656
- name: Configure CMake
5757
working-directory: ${{ matrix.dir }}
@@ -62,7 +62,7 @@ jobs:
6262
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6363
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
6464
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
65-
-S ${{ github.workspace }}
65+
-S ${{ github.workspace }}/${{ matrix.dir }}
6666
6767
- name: Build
6868
working-directory: ${{ matrix.dir }}

0 commit comments

Comments
 (0)