ccpp_win.yml 3.7 KB

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