ccpp_win_debug.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. name: C/C++ debug windows x64
  2. on:
  3. push:
  4. branches:
  5. - debug_win
  6. jobs:
  7. build_dep:
  8. runs-on: windows-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'debug_win'
  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-latest
  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", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | 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\SuperSlicer\SuperSlicer\deps\destdir\usr\local"
  54. - name: make
  55. working-directory: ./build
  56. run: msbuild /m /P:Configuration=Debug INSTALL.vcxproj
  57. - name: make .mo
  58. working-directory: ./build
  59. run: msbuild /m /P:Configuration=Debug gettext_po_to_mo.vcxproj
  60. - name: create directory and copy into it
  61. working-directory: ./build
  62. run: ls
  63. - name: create directory and copy into it
  64. working-directory: ./build
  65. shell: powershell
  66. #todo: add the opengl folder
  67. run: mkdir package
  68. - name: copy from release
  69. working-directory: ./build
  70. shell: powershell
  71. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer/releases/download/2.3.56.1/SuperSlicer_2.3.56.1_win64_210527.zip", "SuperSlicer_2.3.56.1_win64_210527.zip")'
  72. - name: unzip
  73. working-directory: ./build
  74. shell: cmd
  75. run: '"C:/Program Files/7-Zip/7z.exe" x SuperSlicer_2.3.56.1_win64_210527.zip'
  76. - name: copy missing dll content from old release
  77. working-directory: ./build
  78. shell: cmd
  79. run: |
  80. xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\*.dll package\
  81. xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\*.bat package\
  82. xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\mesa package\
  83. - name: copy new resources
  84. working-directory: ./build
  85. shell: cmd
  86. run: xcopy /RCYIE ..\resources package\resources
  87. - name: copy dll & exe
  88. working-directory: ./build
  89. shell: cmd
  90. run: |
  91. xcopy /RCYIE src\release\*.dll package\
  92. xcopy /RCYIE src\release\*.exe package\
  93. xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  94. del package\opengl32.dll
  95. # - name: create zip
  96. # working-directory: ./build
  97. # shell: cmd
  98. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  99. - name: Upload artifact
  100. uses: actions/upload-artifact@v1.0.0
  101. with:
  102. name: nightly_win64_debug
  103. path: build/package/