chore: Update vcpkg.json and CI workflow for improved platform-specific configurations
- Updated the builtin-baseline in vcpkg.json to '01f602195983451bc83e72f4214af2cbc495aa94' for consistency with the latest vcpkg release. - Enhanced the CI workflow by separating CMake configuration steps for Windows, macOS, and Linux, improving clarity and error handling. - Improved error reporting for CMake configuration failures across different platforms, ensuring better diagnostics in CI logs.
This commit is contained in:
@@ -102,21 +102,21 @@ void PopulateCommonWarpFields(WarpEntry& entry, uint16_t raw_map_id,
|
||||
|
||||
absl::StatusOr<int> ParseNumeric(std::string_view value, int base) {
|
||||
try {
|
||||
size_t processed = 0;
|
||||
int result = std::stoi(std::string(value), &processed, base);
|
||||
if (processed != value.size()) {
|
||||
return absl::InvalidArgumentError(
|
||||
absl::StrCat("Invalid numeric value: ", value));
|
||||
}
|
||||
return result;
|
||||
} catch (const std::exception&) {
|
||||
size_t processed = 0;
|
||||
int result = std::stoi(std::string(value), &processed, base);
|
||||
if (processed != value.size()) {
|
||||
return absl::InvalidArgumentError(
|
||||
absl::StrCat("Invalid numeric value: ", value));
|
||||
absl::StrCat("Invalid numeric value: ", std::string(value)));
|
||||
}
|
||||
return result;
|
||||
} catch (const std::exception&) {
|
||||
return absl::InvalidArgumentError(
|
||||
absl::StrCat("Invalid numeric value: ", std::string(value)));
|
||||
}
|
||||
}
|
||||
|
||||
absl::StatusOr<int> ParseWorldSpecifier(std::string_view value) {
|
||||
std::string lower = absl::AsciiStrToLower(value);
|
||||
std::string lower = absl::AsciiStrToLower(std::string(value));
|
||||
if (lower == "0" || lower == "light") {
|
||||
return 0;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ absl::StatusOr<int> ParseWorldSpecifier(std::string_view value) {
|
||||
return 2;
|
||||
}
|
||||
return absl::InvalidArgumentError(
|
||||
absl::StrCat("Unknown world value: ", value));
|
||||
absl::StrCat("Unknown world value: ", std::string(value)));
|
||||
}
|
||||
|
||||
absl::StatusOr<int> InferWorldFromMapId(int map_id) {
|
||||
|
||||
Reference in New Issue
Block a user