mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
ci: cxx_modules
added to CI matrix
This commit is contained in:
9
.github/workflows/ci-conan.yml
vendored
9
.github/workflows/ci-conan.yml
vendored
@@ -64,6 +64,7 @@ jobs:
|
|||||||
cc: "gcc-12",
|
cc: "gcc-12",
|
||||||
cxx: "g++-12",
|
cxx: "g++-12",
|
||||||
},
|
},
|
||||||
|
cxx_modules: False,
|
||||||
conan-config: "",
|
conan-config: "",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
@@ -76,6 +77,7 @@ jobs:
|
|||||||
cc: "gcc-13",
|
cc: "gcc-13",
|
||||||
cxx: "g++-13",
|
cxx: "g++-13",
|
||||||
},
|
},
|
||||||
|
cxx_modules: False,
|
||||||
conan-config: "",
|
conan-config: "",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
@@ -89,6 +91,7 @@ jobs:
|
|||||||
cxx: "clang++-16",
|
cxx: "clang++-16",
|
||||||
},
|
},
|
||||||
lib: "libc++",
|
lib: "libc++",
|
||||||
|
cxx_modules: False,
|
||||||
conan-config: "",
|
conan-config: "",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
@@ -102,7 +105,8 @@ jobs:
|
|||||||
cxx: "clang++-17",
|
cxx: "clang++-17",
|
||||||
},
|
},
|
||||||
lib: "libc++",
|
lib: "libc++",
|
||||||
conan-config: "-o cxx_modules=True",
|
cxx_modules: True,
|
||||||
|
conan-config: "",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Apple Clang 15",
|
name: "Apple Clang 15",
|
||||||
@@ -114,6 +118,7 @@ jobs:
|
|||||||
cc: "clang",
|
cc: "clang",
|
||||||
cxx: "clang++",
|
cxx: "clang++",
|
||||||
},
|
},
|
||||||
|
cxx_modules: False,
|
||||||
conan-config: "",
|
conan-config: "",
|
||||||
}
|
}
|
||||||
build_type: ["Release", "Debug"]
|
build_type: ["Release", "Debug"]
|
||||||
@@ -194,7 +199,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
conan create . --user mpusz --channel ${CHANNEL} --lockfile-out=package.lock \
|
conan create . --user mpusz --channel ${CHANNEL} --lockfile-out=package.lock \
|
||||||
-b mp-units/* -b missing -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" \
|
-b mp-units/* -b missing -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" \
|
||||||
-c user.build:all=True ${{ matrix.config.conan-config }}
|
-c user.build:all=True -o cxx_modules=${{ matrix.config.cxx_modules }} ${{ matrix.config.conan-config }}
|
||||||
- name: Obtain package reference
|
- name: Obtain package reference
|
||||||
id: get-package-ref
|
id: get-package-ref
|
||||||
shell: bash
|
shell: bash
|
||||||
|
9
.github/workflows/ci-test-package-cmake.yml
vendored
9
.github/workflows/ci-test-package-cmake.yml
vendored
@@ -63,6 +63,7 @@ jobs:
|
|||||||
cc: "gcc-12",
|
cc: "gcc-12",
|
||||||
cxx: "g++-12",
|
cxx: "g++-12",
|
||||||
},
|
},
|
||||||
|
cxx_modules: False,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "GCC-13",
|
name: "GCC-13",
|
||||||
@@ -74,6 +75,7 @@ jobs:
|
|||||||
cc: "gcc-13",
|
cc: "gcc-13",
|
||||||
cxx: "g++-13",
|
cxx: "g++-13",
|
||||||
},
|
},
|
||||||
|
cxx_modules: False,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Clang-16",
|
name: "Clang-16",
|
||||||
@@ -86,6 +88,7 @@ jobs:
|
|||||||
cxx: "clang++-16",
|
cxx: "clang++-16",
|
||||||
},
|
},
|
||||||
lib: "libc++",
|
lib: "libc++",
|
||||||
|
cxx_modules: False,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Clang-17",
|
name: "Clang-17",
|
||||||
@@ -98,7 +101,7 @@ jobs:
|
|||||||
cxx: "clang++-17",
|
cxx: "clang++-17",
|
||||||
},
|
},
|
||||||
lib: "libc++",
|
lib: "libc++",
|
||||||
conan-config: "-o cxx_modules=True",
|
cxx_modules: True,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Apple Clang 15",
|
name: "Apple Clang 15",
|
||||||
@@ -110,7 +113,7 @@ jobs:
|
|||||||
cc: "clang",
|
cc: "clang",
|
||||||
cxx: "clang++",
|
cxx: "clang++",
|
||||||
},
|
},
|
||||||
conan-config: "",
|
cxx_modules: False,
|
||||||
}
|
}
|
||||||
build_type: ["Release", "Debug"]
|
build_type: ["Release", "Debug"]
|
||||||
|
|
||||||
@@ -188,7 +191,7 @@ jobs:
|
|||||||
- name: Install Conan dependencies
|
- name: Install Conan dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
conan install . -b missing -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" -c user.build:all=False
|
conan install . -b missing -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" -c user.build:all=False -o cxx_modules=${{ matrix.config.cxx_modules }}
|
||||||
mv CMakeUserPresets.json src
|
mv CMakeUserPresets.json src
|
||||||
- name: Configure mp-units CMake
|
- name: Configure mp-units CMake
|
||||||
if: matrix.config.compiler.type == 'VISUAL' || matrix.config.compiler.type == 'MSVC'
|
if: matrix.config.compiler.type == 'VISUAL' || matrix.config.compiler.type == 'MSVC'
|
||||||
|
Reference in New Issue
Block a user