ccpp_win.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. name: C/C++ CI windows x64
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: windows-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - uses: ilammy/msvc-dev-cmd@v1
  9. - name: mkdir in deps
  10. run: mkdir deps/build
  11. - name: cmake deps
  12. working-directory: ./deps/build
  13. run: |
  14. cmake .. -G "Visual Studio 16 2019" -A x64
  15. msbuild /m ALL_BUILD.vcxproj
  16. - name: mkdir
  17. run: mkdir build
  18. - name: cmake
  19. working-directory: ./build
  20. run: |
  21. cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local"
  22. #msbuild /m /P:Configuration=Release ALL_BUILD.vcxproj
  23. msbuild /m /P:Configuration=Release INSTALL.vcxproj
  24. - name: create directory and copy into it
  25. working-directory: ./build
  26. run: ls
  27. - name: create directory and copy into it
  28. working-directory: ./build
  29. shell: powershell
  30. #todo: add the opengl folder
  31. run: mkdir package
  32. - name: copy from release
  33. working-directory: ./build
  34. shell: powershell
  35. 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")'
  36. - name: unzip
  37. working-directory: ./build
  38. shell: cmd
  39. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r++_2.1.45.0_win64_191104.zip'
  40. - name: copy old release content
  41. working-directory: ./build
  42. shell: cmd
  43. run: xcopy /RCYIE Slic3r++_2.1.45.0_win64_191104\* package\
  44. - name: copy new resources
  45. working-directory: ./build
  46. shell: cmd
  47. run: xcopy /RCYIE ..\resources package\resources
  48. - name: copy dll
  49. working-directory: ./build
  50. shell: cmd
  51. run: xcopy /RCYIE src\release\*.dll package\
  52. - name: copy exe
  53. working-directory: ./build
  54. shell: cmd
  55. run: xcopy /RCYIE src\release\*.exe package\
  56. - name: copy ms runtime
  57. working-directory: ./build
  58. shell: cmd
  59. run: xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  60. # - name: create zip
  61. # working-directory: ./build
  62. # shell: cmd
  63. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  64. - name: Upload artifact
  65. uses: actions/upload-artifact@v1.0.0
  66. with:
  67. name: nightly_win64
  68. path: build/package/