ccpp_win.yml 4.5 KB

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