mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-08 06:34:27 +02:00
ci: gcc-12 support added
This commit is contained in:
26
.github/workflows/ci-check.yml
vendored
26
.github/workflows/ci-check.yml
vendored
@@ -26,17 +26,17 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
31
.github/workflows/ci-conan.yml
vendored
31
.github/workflows/ci-conan.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu GCC-10",
|
name: "Ubuntu GCC-10",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: GCC,
|
type: GCC,
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu GCC-11",
|
name: "Ubuntu GCC-11",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: GCC,
|
type: GCC,
|
||||||
@@ -74,9 +74,22 @@ jobs:
|
|||||||
},
|
},
|
||||||
lib: "libstdc++11",
|
lib: "libstdc++11",
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
name: "Ubuntu GCC-12",
|
||||||
|
os: ubuntu-22.04,
|
||||||
|
compiler:
|
||||||
|
{
|
||||||
|
type: GCC,
|
||||||
|
version: 12,
|
||||||
|
cc: "gcc-12",
|
||||||
|
cxx: "g++-12",
|
||||||
|
std: 20,
|
||||||
|
},
|
||||||
|
lib: "libstdc++11",
|
||||||
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-12 + libstdc++11",
|
name: "Ubuntu Clang-12 + libstdc++11",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -89,7 +102,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-12 + libc++",
|
name: "Ubuntu Clang-12 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -102,7 +115,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-13 + libc++",
|
name: "Ubuntu Clang-13 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -115,7 +128,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-14 + libc++",
|
name: "Ubuntu Clang-14 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -128,7 +141,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-15 + libc++",
|
name: "Ubuntu Clang-15 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -176,8 +189,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ matrix.config.os }}-${{ matrix.config.compiler.type }}-${{ matrix.config.compiler.version }}-${{ matrix.config.lib }}-${{ matrix.build_type }}-${{ matrix.downcast_mode }}
|
key: ${{ matrix.config.os }}-${{ matrix.config.compiler.type }}-${{ matrix.config.compiler.version }}-${{ matrix.config.lib }}-${{ matrix.build_type }}-${{ matrix.downcast_mode }}
|
||||||
max-size: 50M
|
max-size: 50M
|
||||||
- name: Install gcc-11
|
- name: Install gcc-12
|
||||||
if: matrix.config.compiler.type == 'GCC' && matrix.config.compiler.version == '11'
|
if: matrix.config.compiler.type == 'GCC' && matrix.config.compiler.version == '12'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt install -y g++-${{ matrix.config.compiler.version }}
|
sudo apt install -y g++-${{ matrix.config.compiler.version }}
|
||||||
|
27
.github/workflows/ci-test-package-cmake.yml
vendored
27
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -54,7 +54,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu GCC-10",
|
name: "Ubuntu GCC-10",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: GCC,
|
type: GCC,
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu GCC-11",
|
name: "Ubuntu GCC-11",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: GCC,
|
type: GCC,
|
||||||
@@ -78,9 +78,22 @@ jobs:
|
|||||||
},
|
},
|
||||||
lib: "libstdc++11",
|
lib: "libstdc++11",
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
name: "Ubuntu GCC-12",
|
||||||
|
os: ubuntu-22.04,
|
||||||
|
compiler:
|
||||||
|
{
|
||||||
|
type: GCC,
|
||||||
|
version: 12,
|
||||||
|
cc: "gcc-12",
|
||||||
|
cxx: "g++-12",
|
||||||
|
std: 20,
|
||||||
|
},
|
||||||
|
lib: "libstdc++11",
|
||||||
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-12 + libstdc++11",
|
name: "Ubuntu Clang-12 + libstdc++11",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -93,7 +106,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-12 + libc++",
|
name: "Ubuntu Clang-12 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -106,7 +119,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-13 + libc++",
|
name: "Ubuntu Clang-13 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -119,7 +132,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-14 + libc++",
|
name: "Ubuntu Clang-14 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
@@ -132,7 +145,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Clang-15 + libc++",
|
name: "Ubuntu Clang-15 + libc++",
|
||||||
os: ubuntu-20.04,
|
os: ubuntu-22.04,
|
||||||
compiler:
|
compiler:
|
||||||
{
|
{
|
||||||
type: CLANG,
|
type: CLANG,
|
||||||
|
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -25,7 +25,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
CC: gcc-10
|
CC: gcc-10
|
||||||
CXX: g++-10
|
CXX: g++-10
|
||||||
|
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
@@ -45,7 +45,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Generate documentation
|
name: Generate documentation
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Cache Conan data
|
- name: Cache Conan data
|
||||||
|
Reference in New Issue
Block a user