style: ci-conan reformatted

This commit is contained in:
Mateusz Pusz
2022-05-11 19:33:29 +02:00
parent 7737167d1d
commit 6f665b2074

View File

@@ -25,10 +25,10 @@ name: Conan CI
on: on:
push: push:
paths-ignore: paths-ignore:
- 'docs/**' - "docs/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- 'docs/**' - "docs/**"
jobs: jobs:
build: build:
@@ -38,51 +38,95 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- { - {
name: "Windows MSVC 14.2", name: "Windows MSVC 14.2",
os: windows-2019, os: windows-2019,
compiler: { type: VISUAL, version: 16, std: 20, cc: "cl", cxx: "cl" } compiler:
} { type: VISUAL, version: 16, std: 20, cc: "cl", cxx: "cl" },
- { }
name: "Windows MSVC 14.3", - {
os: windows-2022, name: "Windows MSVC 14.3",
compiler: { type: MSVC, version: 193, std: 23, cc: "cl", cxx: "cl" } os: windows-2022,
} compiler:
- { { type: MSVC, version: 193, std: 23, cc: "cl", cxx: "cl" },
name: "Ubuntu GCC-10", }
os: ubuntu-20.04, - {
compiler: { type: GCC, version: 10, cc: "gcc-10", cxx: "g++-10", std: 20 }, name: "Ubuntu GCC-10",
lib: "libstdc++11" os: ubuntu-20.04,
} compiler:
- { {
name: "Ubuntu GCC-11", type: GCC,
os: ubuntu-20.04, version: 10,
compiler: { type: GCC, version: 11, cc: "gcc-11", cxx: "g++-11", std: 20 }, cc: "gcc-10",
lib: "libstdc++11" cxx: "g++-10",
} std: 20,
- { },
name: "Ubuntu Clang-12 + libstdc++11", lib: "libstdc++11",
os: ubuntu-20.04, }
compiler: { type: CLANG, version: 12, cc: "clang-12", cxx: "clang++-12", std: 20 }, - {
lib: "libstdc++11" name: "Ubuntu GCC-11",
} os: ubuntu-20.04,
- { compiler:
name: "Ubuntu Clang-12 + libc++", {
os: ubuntu-20.04, type: GCC,
compiler: { type: CLANG, version: 12, cc: "clang-12", cxx: "clang++-12", std: 20 }, version: 11,
lib: "libc++" cc: "gcc-11",
} cxx: "g++-11",
- { std: 20,
name: "Ubuntu Clang-13 + libc++", },
os: ubuntu-20.04, lib: "libstdc++11",
compiler: { type: CLANG, version: 13, cc: "clang-13", cxx: "clang++-13", std: 20 }, }
lib: "libc++" - {
} name: "Ubuntu Clang-12 + libstdc++11",
- { os: ubuntu-20.04,
name: "MacOS Apple Clang 13", compiler:
os: macos-11, {
compiler: { type: APPLE_CLANG, version: "13.0", cc: "clang", cxx: "clang++", std: 20 } type: CLANG,
} version: 12,
cc: "clang-12",
cxx: "clang++-12",
std: 20,
},
lib: "libstdc++11",
}
- {
name: "Ubuntu Clang-12 + libc++",
os: ubuntu-20.04,
compiler:
{
type: CLANG,
version: 12,
cc: "clang-12",
cxx: "clang++-12",
std: 20,
},
lib: "libc++",
}
- {
name: "Ubuntu Clang-13 + libc++",
os: ubuntu-20.04,
compiler:
{
type: CLANG,
version: 13,
cc: "clang-13",
cxx: "clang++-13",
std: 20,
},
lib: "libc++",
}
- {
name: "MacOS Apple Clang 13",
os: macos-11,
compiler:
{
type: APPLE_CLANG,
version: "13.0",
cc: "clang",
cxx: "clang++",
std: 20,
},
}
# In case a Conan docker image will be needed to provide a specific configuration we can use a Docker image as follows # In case a Conan docker image will be needed to provide a specific configuration we can use a Docker image as follows
# - { # - {
# name: "Ubuntu GCC 10.2.0", # name: "Ubuntu GCC 10.2.0",
@@ -90,8 +134,8 @@ jobs:
# compiler: { type: GCC, version: 10, cc: "gcc-10", cxx: "g++-10" }, # compiler: { type: GCC, version: 10, cc: "gcc-10", cxx: "g++-10" },
# docker_image: conanio/gcc10 # docker_image: conanio/gcc10
# } # }
build_type: [ "Release", "Debug" ] build_type: ["Release", "Debug"]
downcast_mode: [ "on", "auto" ] downcast_mode: ["on", "auto"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: hendrikmuhs/ccache-action@v1 - uses: hendrikmuhs/ccache-action@v1
@@ -141,7 +185,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.8' python-version: "3.8"
- name: Install Conan Package Tools - name: Install Conan Package Tools
run: | run: |
pip install -U conan_package_tools pip install -U conan_package_tools