ccpp_win.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. name: C/C++ CI windows x64
  2. on:
  3. push:
  4. branches:
  5. - CI
  6. jobs:
  7. build_dep:
  8. runs-on: windows-latest
  9. steps:
  10. - uses: actions/checkout@v1
  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-latest
  26. needs: build_dep
  27. steps:
  28. - uses: actions/checkout@v1
  29. - uses: ilammy/msvc-dev-cmd@v1
  30. - name: change date in version
  31. shell: powershell
  32. run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("_" + [datetime]::Today.ToString("yyyy-MM-dd"))} | Set-Content version.inc
  33. - name: mkdir in deps directory
  34. run: mkdir deps/destdir
  35. - name: download deps
  36. uses: actions/download-artifact@v1
  37. with:
  38. name: deps_win
  39. path: deps/destdir
  40. - name: echo dir deps
  41. run: dir deps
  42. - name: echo dir deps destdir
  43. run: dir deps/destdir
  44. - name: mkdir
  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\Slic3r\Slic3r\deps\destdir\usr\local"
  49. - name: make
  50. working-directory: ./build
  51. run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
  52. - name: create directory and copy into it
  53. working-directory: ./build
  54. run: ls
  55. - name: create directory and copy into it
  56. working-directory: ./build
  57. shell: powershell
  58. #todo: add the opengl folder
  59. run: mkdir package
  60. - name: copy from release
  61. working-directory: ./build
  62. shell: powershell
  63. run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/Slic3r/releases/download/2.1.45.0/Slic3r++_2.1.45.0_win64_191104.zip", "Slic3r++_2.1.45.0_win64_191104.zip")'
  64. - name: unzip
  65. working-directory: ./build
  66. shell: cmd
  67. run: '"C:/Program Files/7-Zip/7z.exe" x Slic3r++_2.1.45.0_win64_191104.zip'
  68. - name: copy old release content
  69. working-directory: ./build
  70. shell: cmd
  71. run: xcopy /RCYIE Slic3r++_2.1.45.0_win64_191104\* package\
  72. - name: copy new resources
  73. working-directory: ./build
  74. shell: cmd
  75. run: xcopy /RCYIE ..\resources package\resources
  76. - name: copy dll
  77. working-directory: ./build
  78. shell: cmd
  79. run: xcopy /RCYIE src\release\*.dll package\
  80. - name: copy exe
  81. working-directory: ./build
  82. shell: cmd
  83. run: xcopy /RCYIE src\release\*.exe package\
  84. - name: copy ms runtime
  85. working-directory: ./build
  86. shell: cmd
  87. run: xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
  88. # - name: create zip
  89. # working-directory: ./build
  90. # shell: cmd
  91. # run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
  92. - name: Upload artifact
  93. uses: actions/upload-artifact@v1.0.0
  94. with:
  95. name: nightly_win64
  96. path: build/package/