mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 05:34:27 +02:00
ci: another trial to fix test_package
This commit is contained in:
17
.github/workflows/ci-test-package-cmake.yml
vendored
17
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
- 'example/**'
|
- 'example/**'
|
||||||
- 'test/**'
|
- 'test/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_package:
|
test_package:
|
||||||
name: ${{ matrix.config.name }} ${{ matrix.build_type }}
|
name: ${{ matrix.config.name }} ${{ matrix.build_type }}
|
||||||
@@ -79,10 +82,6 @@ jobs:
|
|||||||
# docker_image: conanio/gcc10
|
# docker_image: conanio/gcc10
|
||||||
# }
|
# }
|
||||||
build_type: [ "Release", "Debug" ]
|
build_type: [ "Release", "Debug" ]
|
||||||
env:
|
|
||||||
CC: ${{ matrix.config.compiler.cc }}
|
|
||||||
CXX: ${{ matrix.config.compiler.cxx }}
|
|
||||||
CMAKE_GENERATOR: Ninja
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Cache Conan data
|
- name: Cache Conan data
|
||||||
@@ -132,6 +131,10 @@ jobs:
|
|||||||
- name: Configure Conan
|
- name: Configure Conan
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
if [[ "${{ matrix.config.compiler.type }}" == "GCC" || "${{ matrix.config.compiler.type }}" == "CLANG" ]]; then
|
||||||
|
export CC=${{ matrix.config.compiler.cc }}
|
||||||
|
export CXX=${{ matrix.config.compiler.cxx }}
|
||||||
|
fi
|
||||||
conan config init
|
conan config init
|
||||||
conan remote add upload https://api.bintray.com/conan/mpusz/conan-mpusz
|
conan remote add upload https://api.bintray.com/conan/mpusz/conan-mpusz
|
||||||
conan profile update settings.build_type=${{ matrix.build_type }} default
|
conan profile update settings.build_type=${{ matrix.build_type }} default
|
||||||
@@ -140,6 +143,12 @@ jobs:
|
|||||||
conan profile update settings.compiler.libcxx=${{ matrix.config.lib }} default
|
conan profile update settings.compiler.libcxx=${{ matrix.config.lib }} default
|
||||||
fi
|
fi
|
||||||
conan profile show default
|
conan profile show default
|
||||||
|
- name: Add support for clang-12 to Conan's settings.yml
|
||||||
|
# TODO Remove when Conan will support clang-12 (after clang-12 release)
|
||||||
|
if: matrix.config.compiler.type == 'CLANG'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sed -i -e 's/"8", "9", "10", "11"]/"8", "9", "10", "11", "12"]/' ~/.conan/settings.yml
|
||||||
- name: Install Conan dependencies
|
- name: Install Conan dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build/${{ matrix.build_type }} && cd build/${{ matrix.build_type }}
|
mkdir -p build/${{ matrix.build_type }} && cd build/${{ matrix.build_type }}
|
||||||
|
Reference in New Issue
Block a user