ccpp_ubuntu_rc.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. name: C/C++ Nigthly ubuntu
  2. on:
  3. push:
  4. branches:
  5. - rc
  6. jobs:
  7. build:
  8. runs-on: ubuntu-18.04
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'rc'
  13. - name: update submodule profiles
  14. working-directory: ./resources/profiles
  15. run: git submodule update --init
  16. - name: change date in version
  17. run: sed -i "s/+UNKNOWN//" version.inc
  18. - name: update clock
  19. run: sudo hwclock -s
  20. - name: update apt
  21. run: sudo apt update
  22. - name: install gtk2 glew
  23. run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev
  24. - name: mkdir in deps
  25. run: mkdir deps/build
  26. - name: cmake deps
  27. working-directory: ./deps/build
  28. run: cmake ..
  29. - name: make deps
  30. working-directory: ./deps/build
  31. run: make
  32. - name: rename wxscintilla
  33. working-directory: ./deps/build/destdir/usr/local/lib
  34. run: cp libwxscintilla-3.1.a libwx_gtk2u_scintilla-3.1.a
  35. - name: ls libs
  36. working-directory: ./deps/build
  37. run: ls ./destdir/usr/local/lib
  38. - name: clean deps
  39. working-directory: ./deps/build
  40. run: rm -rf dep_*
  41. - name: mkdir build
  42. run: mkdir build
  43. - name: cmake
  44. working-directory: ./build
  45. run: cmake .. -DCMAKE_PREFIX_PATH="/home/runner/work/SuperSlicer/SuperSlicer/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1
  46. - name: make SuperSlicer
  47. working-directory: ./build
  48. run: make Slic3r
  49. - name: make .mo
  50. working-directory: ./build
  51. run: make gettext_po_to_mo
  52. - name: make .pot
  53. working-directory: ./build
  54. run: make gettext_make_pot
  55. - name: create directory and copy into it
  56. working-directory: ./build
  57. run: |
  58. mkdir package
  59. mkdir package/bin
  60. - name: copy resources
  61. working-directory: ./build
  62. run: cp -Rf ../resources package/resources
  63. - name: copy bin
  64. working-directory: ./build
  65. run: cp -f src/superslicer package/bin/superslicer
  66. - name: create sh from echo
  67. working-directory: ./build/package
  68. run: |
  69. echo -e '#!/bin/bash\nDIR=$(readlink -f "$0" | xargs dirname)\nexport LD_LIBRARY_PATH="$DIR/bin"\nexec "$DIR/bin/superslicer" "$@"' >superslicer
  70. chmod u+x superslicer
  71. tar -cvf ../SuperSlicer.tar .
  72. - name: Upload artifact
  73. uses: actions/upload-artifact@v1.0.0
  74. with:
  75. name: rc_linux.tar
  76. path: build/SuperSlicer.tar
  77. - name: build appimage
  78. working-directory: ./build/package
  79. run: |
  80. chmod +x ../build_appimage.sh
  81. ../build_appimage.sh
  82. - name: 'Tar files'
  83. working-directory: ./build/package
  84. run: tar -cvf SuperSlicer_ubu64.AppImage.tar SuperSlicer_ubu64.AppImage
  85. - name: Upload appimage
  86. uses: actions/upload-artifact@v1.0.0
  87. with:
  88. name: rc-SuperSlicer-AppImage.tar
  89. path: build/package/SuperSlicer_ubu64.AppImage.tar