Skip to content

Commit 00a132e

Browse files
author
Oleh Kulykov
committed
1722334893
1 parent 372427a commit 00a132e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,13 @@ jobs:
5858
shell: bash
5959
run: |
6060
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
61-
62-
- name: Set reusable strings
63-
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
64-
id: strings2
65-
shell: bash
66-
run: |
67-
echo "build-artifacts-dir=${{ github.workspace }}/artifacts" >> "$GITHUB_ARTIFACTS"
6861
6962
- name: Configure CMake
7063
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
7164
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
7265
run: >
7366
cmake -B ${{ steps.strings.outputs.build-output-dir }}
74-
-DCMAKE_INSTALL_PREFIX=${{ steps.strings2.outputs.build-artifacts-dir }}
67+
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/artifacts
7568
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
7669
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
7770
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
@@ -91,7 +84,7 @@ jobs:
9184
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target Install
9285

9386
- name: List artifacts
94-
working-directory: ${{ steps.strings.outputs2.build-artifacts-dir }}
87+
working-directory: ${{ github.workspace }}/artifacts
9588
run: |
9689
pwd
9790
ls

0 commit comments

Comments
 (0)