forked from mpusz/mp-units
ci: bash set as a shell for all run actions
This commit is contained in:
15
.github/workflows/ci-test-package-cmake.yml
vendored
15
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -129,6 +129,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install Conan
|
- name: Install Conan
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install -U conan
|
pip install -U conan
|
||||||
- name: Configure Conan
|
- name: Configure Conan
|
||||||
@@ -149,27 +150,33 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sed -i -e 's/"8", "9", "10", "11"]/"8", "9", "10", "11", "12"]/' ~/.conan/settings.yml
|
sed -i -e 's/"8", "9", "10", "11"]/"8", "9", "10", "11", "12"]/' ~/.conan/settings.yml
|
||||||
- name: Install Conan dependencies
|
- name: Install Conan dependencies
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
|
shell: bash
|
||||||
|
working-directory: build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
cd build/${{ matrix.build_type }}
|
|
||||||
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
|
||||||
|
working-directory: build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
cd build/${{ matrix.build_type }}
|
|
||||||
cmake --install . --prefix test_package
|
cmake --install . --prefix test_package
|
||||||
- name: Configure test_package CMake
|
- name: Configure test_package CMake
|
||||||
|
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 ../../..
|
||||||
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
|
||||||
|
working-directory: test_package/build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
cd test_package/build/${{ matrix.build_type }}
|
|
||||||
cmake --build .
|
cmake --build .
|
||||||
- name: Run test_package
|
- name: Run test_package
|
||||||
|
shell: bash
|
||||||
|
working-directory: test_package/build/${{ matrix.build_type }}
|
||||||
run: |
|
run: |
|
||||||
cd test_package/build/${{ matrix.build_type }}
|
|
||||||
./test_package
|
./test_package
|
||||||
|
Reference in New Issue
Block a user