From cc5a84823708bd8eefc91e11240a54ff29b1f618 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 29 Apr 2021 13:44:08 +0200 Subject: [PATCH] ci: calling `conanvcvars.bat` for MSVC added --- .github/workflows/ci-test-package-cmake.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-test-package-cmake.yml b/.github/workflows/ci-test-package-cmake.yml index 69b7f06f..9008d6f6 100644 --- a/.github/workflows/ci-test-package-cmake.yml +++ b/.github/workflows/ci-test-package-cmake.yml @@ -153,6 +153,9 @@ jobs: shell: bash working-directory: build/${{ matrix.build_type }} run: | + if [[ "${{ matrix.config.compiler.type }}" == "VISUAL" ]]; then + conanvcvars.bat + fi cmake ../../src -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake - name: Install mp-units shell: bash @@ -164,6 +167,9 @@ jobs: run: | mkdir -p test_package/build/${{ matrix.build_type }} && cd test_package/build/${{ matrix.build_type }} conan install ../../.. + if [[ "${{ matrix.config.compiler.type }}" == "VISUAL" ]]; then + conanvcvars.bat + fi cmake ../.. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package - name: Build test_package shell: bash