ccpp_win.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: C/C++ Nightly windows x64
  2. on:
  3. push:
  4. branches:
  5. - Nigthly
  6. - nightly_dev
  7. - nightly_master
  8. jobs:
  9. build:
  10. runs-on: windows-2019
  11. steps:
  12. - uses: actions/checkout@v1
  13. - uses: ilammy/msvc-dev-cmd@v1
  14. - name: update submodule profiles
  15. working-directory: ./resources/profiles
  16. run: git submodule update --init
  17. - name: change date in version
  18. shell: powershell
  19. run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("-" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc
  20. - run: mkdir deps/destdir
  21. - name: copy deps
  22. working-directory: ./deps/destdir
  23. shell: powershell
  24. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer_deps/releases/download/deps_27/deps_win.zip", "deps_win.zip")'
  25. - name: unzip deps
  26. working-directory: ./deps/destdir
  27. shell: cmd
  28. run: '"C:/Program Files/7-Zip/7z.exe" x deps_win.zip'
  29. - run: dir deps
  30. - run: dir deps/destdir
  31. - run: dir deps/destdir/usr
  32. - run: mkdir msgfmt_bin
  33. - name: copy gettext
  34. working-directory: ./msgfmt_bin
  35. shell: powershell
  36. 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")'
  37. - name: unzip
  38. working-directory: ./msgfmt_bin
  39. shell: cmd
  40. run: '"C:/Program Files/7-Zip/7z.exe" x gettext.zip'
  41. - name: add msgfmt to path
  42. shell: powershell
  43. working-directory: msgfmt_bin
  44. run: echo "$pwd;" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
  45. - run: mkdir build
  46. - name: cmake
  47. working-directory: ./build
  48. 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"
  49. - name: make
  50. working-directory: ./build
  51. run: msbuild /m /P:Configuration=RelWithDebInfo INSTALL.vcxproj
  52. - name: make .mo
  53. working-directory: ./build
  54. run: msbuild /m /P:Configuration=RelWithDebInfo gettext_po_to_mo.vcxproj
  55. - name: make .pot
  56. working-directory: ./build
  57. run: msbuild /m /P:Configuration=RelWithDebInfo gettext_make_pot.vcxproj
  58. - name: create directory and copy into it
  59. working-directory: ./build
  60. run: ls
  61. - name: create directory and copy into it
  62. working-directory: ./build
  63. shell: powershell
  64. #todo: add the opengl folder
  65. run: mkdir package
  66. - name: copy from release
  67. working-directory: ./build
  68. shell: powershell
  69. 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")'
  70. - name: unzip
  71. working-directory: ./build
  72. shell: cmd
  73. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r_win_build.zip'
  74. - name: copy missing dll content from old release
  75. working-directory: ./build
  76. shell: cmd
  77. run: |
  78. xcopy /RCYIE Slic3r_win_build\*.dll package\
  79. xcopy /RCYIE Slic3r_win_build\local-settings.bat package\${{ github.event.repository.name }}_local-settings.bat
  80. xcopy /RCYIE Slic3r_win_build\mesa package\
  81. - name: copy new resources
  82. working-directory: ./build
  83. shell: cmd
  84. run: xcopy /RCYIE ..\resources package\resources
  85. - name: copy dll & exe
  86. working-directory: ./build
  87. shell: cmd
  88. run: |
  89. xcopy /RCYIE src\RelWithDebInfo\*.dll package\
  90. xcopy /RCYIE src\RelWithDebInfo\*.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: nightly_win64
  101. path: build/package/