ccpp_win_deps.yml 4.1 KB

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