Skip to content

Commit 4b92fa1

Browse files
Update cmake-single-platform.yml
1 parent 18590df commit 4b92fa1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ jobs:
3333
- name: Install Conan dependencies
3434
if: env.BUILD_TESTS == 'ON'
3535
run: |
36-
conan install . --output-folder=build --build=missing -s build_type=${{env.BUILD_TYPE}}
36+
conan install ${{github.workspace}} --output-folder=${{github.workspace}}/build --build=missing -s build_type=${{env.BUILD_TYPE}}
3737
3838
- name: Configure CMake
3939
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
4040
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
41-
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
42-
-DBUILD_TESTS=${{env.BUILD_TESTS}} \
43-
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/build/Release/generators/conan_toolchain.cmake
41+
run: cmake -B build -S ${{github.workspace}} \
42+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
43+
-DBUILD_TESTS=${{env.BUILD_TESTS}} \
44+
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/build/Release/generators/conan_toolchain.cmake
4445

4546
- name: Build
4647
# Build your program with the given configuration

0 commit comments

Comments
 (0)