-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some of the CI setup into the CMakePresets.json setup. This should make it more clear that there is no magic going, and we are just testing many different CMake configurations with corrosion.
- Loading branch information
Showing
2 changed files
with
196 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
{ | ||
"version": 3, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 22, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "ninja", | ||
"hidden": true, | ||
"generator": "Ninja" | ||
}, | ||
{ | ||
"name": "ninja-mc", | ||
"hidden": true, | ||
"generator": "Ninja Multi-Config" | ||
}, | ||
{ | ||
"name": "make", | ||
"hidden": true, | ||
"generator": "Unix Makefiles" | ||
}, | ||
{ | ||
"name": "vs-2019", | ||
"hidden": true, | ||
"generator": "Visual Studio 16 2019" | ||
}, | ||
{ | ||
"name": "vs-2022", | ||
"hidden": true, | ||
"generator": "Visual Studio 17 2022" | ||
}, | ||
{ | ||
"name": "windows-only", | ||
"hidden": true, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
}, | ||
{ | ||
"name": "windows-10-cross", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_SYSTEM_NAME": "Windows", | ||
"CMAKE_SYSTEM_VERSION": "10.0" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
}, | ||
{ | ||
"name": "x86_64-pc-windows-msvc", | ||
"hidden": true, | ||
"inherits": ["windows-only"], | ||
"cacheVariables": { | ||
"Rust_CARGO_TARGET": "x86_64-pc-windows-msvc" | ||
} | ||
}, | ||
{ | ||
"name": "i686-pc-windows-msvc", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"Rust_CARGO_TARGET": "i686-pc-windows-msvc" | ||
} | ||
}, | ||
{ | ||
"name": "aarch64-pc-windows-msvc", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"Rust_CARGO_TARGET": "aarch64-pc-windows-msvc" | ||
} | ||
}, | ||
{ | ||
"name": "x86_64-pc-windows-gnu", | ||
"hidden": true, | ||
"inherits": ["windows-only"], | ||
"cacheVariables": { | ||
"Rust_CARGO_TARGET": "x86_64-pc-windows-gnu" | ||
} | ||
}, | ||
{ | ||
"name": "vs-platform-arm64", | ||
"hidden": true, | ||
"inherits": ["aarch64-pc-windows-msvc","windows-10-cross"], | ||
"architecture": { | ||
"value": "ARM64" | ||
} | ||
}, | ||
{ | ||
"name": "vs-platform-x64", | ||
"hidden": true, | ||
"inherits": ["x86_64-pc-windows-msvc"], | ||
"architecture": { | ||
"value": "x64" | ||
} | ||
}, | ||
{ | ||
"name": "vs-platform-i686", | ||
"hidden": true, | ||
"inherits": ["i686-pc-windows-msvc", "windows-10-cross"], | ||
"architecture": { | ||
"value": "Win32" | ||
} | ||
}, | ||
{ | ||
"name": "vs-2019-x86_64", | ||
"inherits": ["vs-platform-x64", "vs-2019"] | ||
}, | ||
{ | ||
"name": "vs-2022-x86_64", | ||
"inherits": ["vs-platform-x64", "vs-2022"] | ||
}, | ||
{ | ||
"name": "vs-2019-i686", | ||
"inherits": ["vs-platform-i686", "vs-2019"] | ||
}, | ||
{ | ||
"name": "vs-2022-i686", | ||
"inherits": ["vs-platform-i686", "vs-2022"] | ||
}, | ||
{ | ||
"name": "vs-2019-aarch64", | ||
"inherits": ["vs-platform-arm64", "vs-2019"] | ||
}, | ||
{ | ||
"name": "vs-2022-aarch64", | ||
"inherits": ["vs-platform-arm64", "vs-2022"] | ||
}, | ||
{ | ||
"name": "_compiler", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "${presetName}", | ||
"CMAKE_CXX_COMPILER": "${presetName}" | ||
} | ||
}, | ||
{ | ||
"name": "clang", | ||
"hidden": true, | ||
"inherits": ["_compiler"] | ||
}, | ||
{ | ||
"name": "clang-cl", | ||
"hidden": true, | ||
"inherits": ["_compiler"] | ||
}, | ||
{ | ||
"name": "cl", | ||
"hidden": true, | ||
"inherits": ["_compiler"] | ||
}, | ||
{ | ||
"name": "gcc", | ||
"hidden": true, | ||
"inherits": ["_compiler"] | ||
}, | ||
{ | ||
"name": "ninja-x86_64-pc-windows-msvc-cl", | ||
"inherits": ["ninja", "x86_64-pc-windows-msvc", "cl"] | ||
}, | ||
{ | ||
"name": "ninja-x86_64-pc-windows-msvc-clang-cl", | ||
"inherits": ["ninja", "x86_64-pc-windows-msvc", "clang-cl"] | ||
}, | ||
{ | ||
"name": "ninja-x86_64-pc-windows-gnu-clang", | ||
"inherits": ["ninja", "x86_64-pc-windows-gnu", "clang"] | ||
}, | ||
{ | ||
"name": "ninja-x86_64-pc-windows-gnu-gcc", | ||
"inherits": ["ninja", "x86_64-pc-windows-gnu", "gcc"] | ||
} | ||
] | ||
} |