mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 14:45:52 +08:00
try to bugfix win build with less disk usage
This commit is contained in:
parent
6141527694
commit
15a65af75d
44
.github/workflows/ccpp_win.yml
vendored
44
.github/workflows/ccpp_win.yml
vendored
@ -6,8 +6,28 @@ on:
|
|||||||
- CI
|
- CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build_dep:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- name: mkdir in deps
|
||||||
|
run: mkdir deps/build
|
||||||
|
- name: cmake and make deps
|
||||||
|
working-directory: ./deps/build
|
||||||
|
run: |
|
||||||
|
cmake .. -G "Visual Studio 16 2019" -A x64
|
||||||
|
msbuild /m ALL_BUILD.vcxproj
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v1.0.0
|
||||||
|
with:
|
||||||
|
name: deps_win
|
||||||
|
path: ./deps/build/destdir/
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
needs: build_dep
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
@ -15,22 +35,22 @@ jobs:
|
|||||||
- name: change date in version
|
- name: change date in version
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc
|
run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc
|
||||||
- name: mkdir in deps
|
- name: mkdir in deps directory
|
||||||
run: mkdir deps/build
|
run: mkdir deps/destdir
|
||||||
- name: cmake deps
|
- name: download deps
|
||||||
working-directory: ./deps/build
|
uses: actions/download-artifact@v1
|
||||||
run: |
|
with:
|
||||||
cmake .. -G "Visual Studio 16 2019" -A x64
|
name: deps_win
|
||||||
msbuild /m ALL_BUILD.vcxproj
|
path: deps/destdir
|
||||||
- name: clean deps
|
- name: echo dir deps
|
||||||
working-directory: ./deps/build
|
run: dir deps
|
||||||
shell: cmd
|
- name: echo dir deps destdir
|
||||||
run: for /d %G in ("./dep_*") do rmdir /S /Q "%~G"
|
run: dir deps/destdir
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: cmake
|
- name: cmake
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local"
|
run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\destdir\usr\local"
|
||||||
- name: make
|
- name: make
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
|
run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
|
||||||
|
@ -486,7 +486,7 @@ int check_copy(const std::string &origin, const std::string ©)
|
|||||||
} while (f1.good() && f2.good());
|
} while (f1.good() && f2.good());
|
||||||
|
|
||||||
// All data has been read and compared equal.
|
// All data has been read and compared equal.
|
||||||
return (f1.eof() && f2.eof() && fsize == 0) ? 0 : -1;
|
return (f1.eof() && f2.eof() && fsize == std::streampos(0)) ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore system and hidden files, which may be created by the DropBox synchronisation process.
|
// Ignore system and hidden files, which may be created by the DropBox synchronisation process.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user