ccpp_ubuntu_debug.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. name: C/C++ debug ubuntu
  2. on:
  3. push:
  4. branches:
  5. - debug_ubuntu
  6. jobs:
  7. build:
  8. runs-on: ubuntu-18.04
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'debug_ubuntu'
  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/_$(date '+%F')/" 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 .. -DCMAKE_BUILD_TYPE=Debug
  29. - name: make deps
  30. working-directory: ./deps/build
  31. run: make
  32. - name: ls libs
  33. working-directory: ./deps/build
  34. run: ls ./destdir/usr/local/lib
  35. - name: rename wxscintilla
  36. working-directory: ./deps/build/destdir/usr/local/lib
  37. run: cp libwxscintilla-3.1.a libwx_gtk2u_scintilla-3.1.a
  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_BUILD_TYPE=Debug -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: create directory and copy into it
  53. working-directory: ./build
  54. run: |
  55. mkdir package
  56. mkdir package/bin
  57. - name: copy resources
  58. working-directory: ./build
  59. run: cp -Rf ../resources package/resources
  60. - name: copy bin
  61. working-directory: ./build
  62. run: cp -f src/superslicer package/bin/SuperSlicer
  63. - name: create sh from echo
  64. working-directory: ./build/package
  65. run: |
  66. echo -e '#!/bin/bash\nDIR=$(readlink -f "$0" | xargs dirname)\nexport LD_LIBRARY_PATH="$DIR/bin"\nexec "$DIR/bin/superslicer" "$@"' >superslicer
  67. chmod u+x superslicer
  68. tar -cvf ../SuperSlicer.tar .
  69. - name: Upload artifact
  70. uses: actions/upload-artifact@v1.0.0
  71. with:
  72. name: nightly_linux.tar
  73. path: build/SuperSlicer.tar
  74. - name: build appimage
  75. working-directory: ./build/package
  76. run: |
  77. chmod +x ../build_appimage.sh
  78. ../build_appimage.sh
  79. - name: 'Tar files'
  80. working-directory: ./build/package
  81. run: tar -cvf SuperSlicer_ubu64.AppImage.tar SuperSlicer_ubu64.AppImage
  82. - name: Upload appimage
  83. uses: actions/upload-artifact@v1.0.0
  84. with:
  85. name: Slic3r-AppImage.tar
  86. path: build/package/SuperSlicer_ubu64.AppImage.tar