fix(build): use portable save paths and validate all PRX libraries in CI

This commit is contained in:
boykopovar 2026-09-29 02:24:56 +03:00
parent 1ff73445b1
commit b01e0bbf52
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ jobs:
evict-old-files: job
- run: cmake -S . -B build $CONFIGURE
- run: cmake --build build
- run: cmake --build build --target libs
- run: ctest --test-dir build --output-on-failure --timeout 120
windows:
@ -68,5 +69,7 @@ jobs:
run: cmake -S . -B build %CONFIGURE%
- shell: cmd
run: cmake --build build
- shell: cmd
run: cmake --build build --target libs
- shell: cmd
run: ctest --test-dir build --output-on-failure --timeout 120

View File

@ -290,7 +290,8 @@ std::filesystem::path save_blocks_path(const std::filesystem::path& directory) {
bool write_blob(const std::filesystem::path& path, const void* data, std::size_t size) {
std::error_code error;
std::filesystem::create_directories(path.parent_path(), error);
const std::filesystem::path temporary = path.native() + L".tmp";
auto temporary = path;
temporary += ".tmp";
{
std::ofstream file(temporary, std::ios::binary | std::ios::trunc);
if (!file) {