mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
ci: set default shell for MSVC to be able to run conanvcvars.bat
This commit is contained in:
24
.github/workflows/ci-test-package-cmake.yml
vendored
24
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -150,26 +150,36 @@ jobs:
|
||||
mkdir -p build/${{ matrix.build_type }} && cd build/${{ matrix.build_type }}
|
||||
conan install ../.. -b outdated -u
|
||||
- name: Configure mp-units CMake
|
||||
if: matrix.config.compiler.type == 'VISUAL'
|
||||
working-directory: build/${{ matrix.build_type }}
|
||||
run: |
|
||||
conanvcvars.bat
|
||||
cmake ../../src -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
|
||||
- name: Configure mp-units CMake
|
||||
if: matrix.config.compiler.type != 'VISUAL'
|
||||
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
|
||||
working-directory: build/${{ matrix.build_type }}
|
||||
run: |
|
||||
cmake --install . --prefix test_package
|
||||
- name: Configure test_package CMake
|
||||
- name: Install dependencies for test_package
|
||||
shell: bash
|
||||
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
|
||||
- name: Configure test_package CMake
|
||||
if: matrix.config.compiler.type == 'VISUAL'
|
||||
run: |
|
||||
conanvcvars.bat
|
||||
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package
|
||||
- name: Configure test_package CMake
|
||||
if: matrix.config.compiler.type != 'VISUAL'
|
||||
shell: bash
|
||||
run: |
|
||||
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package
|
||||
- name: Build test_package
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user