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:
scawful
2025-10-09 12:24:27 -04:00
parent 6539f8fb42
commit 2d9a2d11f4
3 changed files with 72 additions and 39 deletions

View File

@@ -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) {