fix(build): use portable save paths and validate all PRX libraries in CI
This commit is contained in:
parent
1ff73445b1
commit
b01e0bbf52
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue