mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +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 }}
|
mkdir -p build/${{ matrix.build_type }} && cd build/${{ matrix.build_type }}
|
||||||
conan install ../.. -b outdated -u
|
conan install ../.. -b outdated -u
|
||||||
- name: Configure mp-units CMake
|
- 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
|
shell: bash
|
||||||
working-directory: build/${{ matrix.build_type }}
|
working-directory: build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.config.compiler.type }}" == "VISUAL" ]]; then
|
|
||||||
./conanvcvars.bat
|
|
||||||
fi
|
|
||||||
cmake ../../src -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
|
cmake ../../src -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
|
||||||
- name: Install mp-units
|
- name: Install mp-units
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: build/${{ matrix.build_type }}
|
working-directory: build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
cmake --install . --prefix test_package
|
cmake --install . --prefix test_package
|
||||||
- name: Configure test_package CMake
|
- name: Install dependencies for test_package
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p test_package/build/${{ matrix.build_type }} && cd test_package/build/${{ matrix.build_type }}
|
mkdir -p test_package/build/${{ matrix.build_type }} && cd test_package/build/${{ matrix.build_type }}
|
||||||
conan install ../../..
|
conan install ../../..
|
||||||
if [[ "${{ matrix.config.compiler.type }}" == "VISUAL" ]]; then
|
- name: Configure test_package CMake
|
||||||
./conanvcvars.bat
|
if: matrix.config.compiler.type == 'VISUAL'
|
||||||
fi
|
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
|
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_INSTALL_PREFIX=../../../build/${{ matrix.build_type }}/test_package
|
||||||
- name: Build test_package
|
- name: Build test_package
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Reference in New Issue
Block a user