ccpp_win_debug.yml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. name: C/C++ debug windows x64
  2. on:
  3. push:
  4. branches:
  5. - debug_win
  6. jobs:
  7. build_pot:
  8. runs-on: windows-2019
  9. steps:
  10. - uses: actions/checkout@v1
  11. - uses: ilammy/msvc-dev-cmd@v1
  12. - name: update submodule profiles
  13. working-directory: ./resources/profiles
  14. run: git submodule update --init
  15. - run: mkdir deps/destdir
  16. - name: copy deps
  17. working-directory: ./deps/destdir
  18. shell: powershell
  19. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/deps_27/deps_win.zip", "deps_win.zip")'
  20. - name: unzip deps
  21. working-directory: ./deps/destdir
  22. shell: cmd
  23. run: '"C:/Program Files/7-Zip/7z.exe" x deps_win.zip'
  24. - run: dir deps
  25. - run: dir deps/destdir
  26. - run: dir deps/destdir/usr
  27. - run: mkdir msgfmt_bin
  28. - name: copy gettext
  29. working-directory: ./msgfmt_bin
  30. shell: powershell
  31. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/gettext/gettext-tools-static-0.18.1.1.zip", "gettext.zip")'
  32. - name: unzip
  33. working-directory: ./msgfmt_bin
  34. shell: cmd
  35. run: '"C:/Program Files/7-Zip/7z.exe" x gettext.zip'
  36. - name: add msgfmt to path
  37. shell: powershell
  38. working-directory: msgfmt_bin
  39. run: echo "$pwd;" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
  40. - run: mkdir build
  41. - name: cmake
  42. working-directory: ./build
  43. 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"
  44. - name: make .mo
  45. working-directory: ./build
  46. run: msbuild /m /P:Configuration=RelWithDebInfo gettext_po_to_mo.vcxproj
  47. - name: make .pot
  48. working-directory: ./build
  49. run: msbuild /m /P:Configuration=RelWithDebInfo gettext_make_pot.vcxproj
  50. build_dep:
  51. runs-on: windows-2019
  52. needs: build_pot
  53. steps:
  54. - uses: actions/checkout@v2
  55. with:
  56. ref: 'debug_win'
  57. - uses: ilammy/msvc-dev-cmd@v1
  58. - name: mkdir in deps
  59. run: mkdir deps/build
  60. - name: cmake and make deps
  61. working-directory: ./deps/build
  62. run: |
  63. cmake .. -G "Visual Studio 16 2019" -A x64
  64. msbuild /m ALL_BUILD.vcxproj
  65. - name: Upload artifact
  66. uses: actions/upload-artifact@v1.0.0
  67. with:
  68. name: deps_win
  69. path: ./deps/build/destdir/
  70. build:
  71. runs-on: windows-2019
  72. needs: build_dep
  73. steps:
  74. - uses: actions/checkout@v1
  75. - uses: ilammy/msvc-dev-cmd@v1
  76. - name: update submodule profiles
  77. working-directory: ./resources/profiles
  78. run: git submodule update --init
  79. - name: change date in version
  80. shell: powershell
  81. run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc
  82. - name: mkdir in deps directory
  83. run: mkdir deps/destdir
  84. - name: download deps
  85. uses: actions/download-artifact@v1
  86. with:
  87. name: deps_win
  88. path: deps/destdir
  89. - run: dir deps
  90. - run: dir deps/destdir
  91. - run: mkdir msgfmt_bin
  92. - name: copy gettext
  93. working-directory: ./msgfmt_bin
  94. shell: powershell
  95. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/gettext/gettext-tools-static-0.18.1.1.zip", "gettext.zip")'
  96. - name: unzip
  97. working-directory: ./msgfmt_bin
  98. shell: cmd
  99. run: '"C:/Program Files/7-Zip/7z.exe" x gettext.zip'
  100. - name: add msgfmt to path
  101. shell: powershell
  102. working-directory: msgfmt_bin
  103. run: echo "$pwd;" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
  104. - run: mkdir build
  105. - name: cmake
  106. working-directory: ./build
  107. 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"
  108. - name: make
  109. working-directory: ./build
  110. run: msbuild /m /P:Configuration=Debug INSTALL.vcxproj
  111. - name: make .mo
  112. working-directory: ./build
  113. run: msbuild /m /P:Configuration=Debug gettext_po_to_mo.vcxproj
  114. - name: create directory and copy into it
  115. working-directory: ./build
  116. run: ls
  117. - name: create directory and copy into it
  118. working-directory: ./build
  119. shell: powershell
  120. #todo: add the opengl folder
  121. run: mkdir package
  122. - name: copy from release
  123. working-directory: ./build
  124. shell: powershell
  125. 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")'
  126. - name: unzip
  127. working-directory: ./build
  128. shell: cmd
  129. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r_win_build.zip'
  130. - name: copy missing dll content from old release
  131. working-directory: ./build
  132. shell: cmd
  133. run: |
  134. xcopy /RCYIE Slic3r_win_build\*.dll package\
  135. xcopy /RCYIE Slic3r_win_build\local-settings.bat package\${{ github.event.repository.name }}_local-settings.bat
  136. xcopy /RCYIE Slic3r_win_build\mesa package\
  137. - name: copy new resources
  138. working-directory: ./build
  139. shell: cmd
  140. run: xcopy /RCYIE ..\resources package\resources
  141. - name: copy dll & exe
  142. working-directory: ./build
  143. shell: cmd
  144. run: |
  145. xcopy /RCYIE src\debug\*.dll package\
  146. xcopy /RCYIE src\debug\*.exe package\
  147. xcopy /RCYIE src\debug\*.pdb package\
  148. xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  149. del package\opengl32.dll
  150. # - name: create zip
  151. # working-directory: ./build
  152. # shell: cmd
  153. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  154. - name: Upload artifact
  155. uses: actions/upload-artifact@v1.0.0
  156. with:
  157. name: nightly_win64_debug
  158. path: build/package/