Skip to content

Commit 66adb89

Browse files
author
Oleh Kulykov
committed
1722335135
1 parent 00a132e commit 66adb89

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ jobs:
5858
shell: bash
5959
run: |
6060
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
61+
echo "build-artifacts-dir=${{ github.workspace }}/artifacts"
6162
6263
- name: Configure CMake
6364
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
6465
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
6566
run: >
6667
cmake -B ${{ steps.strings.outputs.build-output-dir }}
67-
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/artifacts
68+
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-artifacts-dir }}
6869
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6970
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
7071
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
@@ -81,10 +82,10 @@ jobs:
8182
run: ctest --extra-verbose --build-config ${{ matrix.build_type }}
8283

8384
- name: Install artifacts
84-
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target Install
85+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target install
8586

8687
- name: List artifacts
87-
working-directory: ${{ github.workspace }}/artifacts
88+
working-directory: ${{ steps.strings.outputs.build-artifacts-dir }}
8889
run: |
8990
pwd
9091
ls

0 commit comments

Comments
 (0)