ccpp_win_rc.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: C/C++ Release candidate windows x64
  2. on:
  3. push:
  4. branches:
  5. - rc
  6. jobs:
  7. build:
  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. - name: change date in version
  16. shell: powershell
  17. run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("")} | Set-Content version.inc
  18. - run: mkdir deps/destdir
  19. - name: copy deps
  20. working-directory: ./deps/destdir
  21. shell: powershell
  22. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/deps_25/deps_win.zip", "deps_win.zip")'
  23. - name: unzip deps
  24. working-directory: ./deps/destdir
  25. shell: cmd
  26. run: '"C:/Program Files/7-Zip/7z.exe" x deps_win.zip'
  27. - run: dir deps
  28. - run: dir deps/destdir
  29. - run: dir deps/destdir/usr
  30. - run: mkdir msgfmt_bin
  31. - name: copy gettext
  32. working-directory: ./msgfmt_bin
  33. shell: powershell
  34. 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")'
  35. - name: unzip
  36. working-directory: ./msgfmt_bin
  37. shell: cmd
  38. run: '"C:/Program Files/7-Zip/7z.exe" x gettext.zip'
  39. - name: add msgfmt to path
  40. shell: powershell
  41. working-directory: msgfmt_bin
  42. run: echo "$pwd;" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
  43. - run: mkdir build
  44. - name: cmake
  45. working-directory: ./build
  46. 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"
  47. - name: make
  48. working-directory: ./build
  49. run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
  50. - name: make .mo
  51. working-directory: ./build
  52. run: msbuild /m /P:Configuration=Release gettext_po_to_mo.vcxproj
  53. - name: make .pot
  54. working-directory: ./build
  55. run: msbuild /m /P:Configuration=Release gettext_make_pot.vcxproj
  56. - name: create directory and copy into it
  57. working-directory: ./build
  58. run: ls
  59. - name: create directory and copy into it
  60. working-directory: ./build
  61. shell: powershell
  62. #todo: add the opengl folder
  63. run: mkdir package
  64. - name: copy from release
  65. working-directory: ./build
  66. shell: powershell
  67. 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")'
  68. - name: unzip
  69. working-directory: ./build
  70. shell: cmd
  71. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r_win_build.zip'
  72. - name: copy missing dll content from old release
  73. working-directory: ./build
  74. shell: cmd
  75. run: |
  76. xcopy /RCYIE Slic3r_win_build\*.dll package\
  77. xcopy /RCYIE Slic3r_win_build\local-settings.bat package\${{ github.event.repository.name }}_local-settings.bat
  78. xcopy /RCYIE Slic3r_win_build\mesa package\
  79. - name: copy new resources
  80. working-directory: ./build
  81. shell: cmd
  82. run: |
  83. xcopy /RCYIE ..\resources package\resources
  84. del /S /Q package\resources\localization\*.so
  85. - name: copy dll & exe
  86. working-directory: ./build
  87. shell: cmd
  88. run: |
  89. xcopy /RCYIE src\release\*.dll package\
  90. xcopy /RCYIE src\release\*.exe package\
  91. xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  92. del package\opengl32.dll
  93. # - name: create zip
  94. # working-directory: ./build
  95. # shell: cmd
  96. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  97. - name: Upload artifact
  98. uses: actions/upload-artifact@v1.0.0
  99. with:
  100. name: rc_win64
  101. path: build/package/