ccpp_win_rc.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. name: C/C++ Release candidate windows x64
  2. on:
  3. push:
  4. branches:
  5. - rc
  6. jobs:
  7. build_dep:
  8. runs-on: windows-2019
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'rc'
  13. - uses: ilammy/msvc-dev-cmd@v1
  14. - name: mkdir in deps
  15. run: mkdir deps/build
  16. - name: cmake and make deps
  17. working-directory: ./deps/build
  18. run: |
  19. cmake .. -G "Visual Studio 16 2019" -A x64
  20. msbuild /m ALL_BUILD.vcxproj
  21. - name: Upload artifact
  22. uses: actions/upload-artifact@v1.0.0
  23. with:
  24. name: deps_win
  25. path: ./deps/build/destdir/
  26. build:
  27. runs-on: windows-2019
  28. needs: build_dep
  29. steps:
  30. - uses: actions/checkout@v1
  31. - uses: ilammy/msvc-dev-cmd@v1
  32. - name: update submodule profiles
  33. working-directory: ./resources/profiles
  34. run: git submodule update --init
  35. - name: change date in version
  36. shell: powershell
  37. run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("")} | Set-Content version.inc
  38. - name: mkdir in deps directory
  39. run: mkdir deps/destdir
  40. - name: download deps
  41. uses: actions/download-artifact@v1
  42. with:
  43. name: deps_win
  44. path: deps/destdir
  45. - name: echo dir deps
  46. run: dir deps
  47. - name: echo dir deps destdir
  48. run: dir deps/destdir
  49. - name: mkdir
  50. run: mkdir build
  51. - name: cmake
  52. working-directory: ./build
  53. run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\${{ github.event.repository.name }}\${{ github.event.repository.name }}\deps\destdir\usr\local"
  54. - name: make
  55. working-directory: ./build
  56. run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
  57. - name: make .mo
  58. working-directory: ./build
  59. run: msbuild /m /P:Configuration=Release gettext_po_to_mo.vcxproj
  60. - name: make .pot
  61. working-directory: ./build
  62. run: msbuild /m /P:Configuration=Release gettext_make_pot.vcxproj
  63. - name: create directory and copy into it
  64. working-directory: ./build
  65. run: ls
  66. - name: create directory and copy into it
  67. working-directory: ./build
  68. shell: powershell
  69. #todo: add the opengl folder
  70. run: mkdir package
  71. - name: copy from release
  72. working-directory: ./build
  73. shell: powershell
  74. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/1.75/Slic3r_win_build.zip", "Slic3r_win_build.zip")'
  75. - name: unzip
  76. working-directory: ./build
  77. shell: cmd
  78. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r_win_build.zip'
  79. - name: copy missing dll content from old release
  80. working-directory: ./build
  81. shell: cmd
  82. run: |
  83. xcopy /RCYIE Slic3r_win_build\*.dll package\
  84. xcopy /RCYIE Slic3r_win_build\local-settings.bat package\${{ github.event.repository.name }}_local-settings.bat
  85. xcopy /RCYIE Slic3r_win_build\mesa package\
  86. - name: copy new resources
  87. working-directory: ./build
  88. shell: cmd
  89. run: |
  90. xcopy /RCYIE ..\resources package\resources
  91. del /S /Q package\resources\localization\*.so
  92. - name: copy dll & exe
  93. working-directory: ./build
  94. shell: cmd
  95. run: |
  96. xcopy /RCYIE src\release\*.dll package\
  97. xcopy /RCYIE src\release\*.exe package\
  98. xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  99. del package\opengl32.dll
  100. # - name: create zip
  101. # working-directory: ./build
  102. # shell: cmd
  103. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  104. - name: Upload artifact
  105. uses: actions/upload-artifact@v1.0.0
  106. with:
  107. name: rc_win64
  108. path: build/package/