CMake: Use ${{runner.workspace}}/build instead of ./build

This commit is contained in:
Clément Grégoire
2020-12-05 16:06:07 +01:00
committed by GitHub
parent e2f0d8de48
commit f344c836c9
+2 -2
View File
@@ -24,11 +24,11 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{runner.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{runner.workspace}}/build