mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 05:10:42 +08:00
Create action for automatic build for windows
This commit is contained in:
parent
43c13a8168
commit
caec790c9a
83
.github/workflows/ccpp_win.yml
vendored
Normal file
83
.github/workflows/ccpp_win.yml
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
name: C/C++ CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: ls
|
||||
shell: cmd
|
||||
run: dir "C:/Program Files"
|
||||
- name: mkdir in deps
|
||||
run: mkdir deps/build
|
||||
- name: cmake deps
|
||||
working-directory: ./deps/build
|
||||
run: |
|
||||
cmake .. -G "Visual Studio 16 2019" -A x64
|
||||
msbuild /m ALL_BUILD.vcxproj
|
||||
- name: ls deps
|
||||
working-directory: ./deps
|
||||
shell: cmd
|
||||
run: |
|
||||
dir
|
||||
dir build
|
||||
dir build\destdir
|
||||
- name: mkdir
|
||||
run: mkdir build
|
||||
- name: cmake
|
||||
working-directory: ./build
|
||||
# shell: powershell
|
||||
# shell: pwsh
|
||||
run: |
|
||||
cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local"
|
||||
#msbuild /m /P:Configuration=Release ALL_BUILD.vcxproj
|
||||
msbuild /m /P:Configuration=Release INSTALL.vcxproj
|
||||
- name: create directory and copy into it
|
||||
working-directory: ./build
|
||||
run: ls
|
||||
- name: create directory and copy into it
|
||||
working-directory: ./build
|
||||
shell: powershell
|
||||
#todo: add the opengl folder
|
||||
run: mkdir package
|
||||
- name: copy from release
|
||||
working-directory: ./build
|
||||
shell: powershell
|
||||
run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/Slic3r/releases/download/2.1.45.0/Slic3r++_2.1.45.0_win64_191104.zip", "Slic3r++_2.1.45.0_win64_191104.zip")'
|
||||
- name: unzip
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r++_2.1.45.0_win64_191104.zip'
|
||||
- name: copy old release content
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: xcopy /RCYIE Slic3r++_2.1.45.0_win64_191104\* package\
|
||||
- name: copy new resources
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: xcopy /RCYIE ..\resources package\resources
|
||||
- name: copy dll
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: xcopy /RCYIE src\release\*.dll package\
|
||||
- name: copy exe
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: xcopy /RCYIE src\release\*.exe package\
|
||||
- name: copy ms runtime
|
||||
working-directory: ./build
|
||||
shell: cmd
|
||||
run: xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
|
||||
# - name: create zip
|
||||
# working-directory: ./build
|
||||
# shell: cmd
|
||||
# run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: nightly_win64
|
||||
path: build/package/
|
Loading…
x
Reference in New Issue
Block a user