ccpp_ubuntu.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: C/C++ CI ubuntu
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: install gtk2 glew
  9. run: sudo apt-get install libgtk2.0-dev libglew-dev
  10. - name: mkdir in deps
  11. run: mkdir deps/build
  12. - name: cmake deps
  13. working-directory: ./deps/build
  14. run: cmake ..
  15. - name: make deps
  16. working-directory: ./deps/build
  17. run: make
  18. - name: mkdir build
  19. run: mkdir build
  20. - name: cmake
  21. working-directory: ./build
  22. run: cmake .. -DCMAKE_PREFIX_PATH="/home/runner/work/Slic3r/Slic3r/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1
  23. - name: make slic3r
  24. working-directory: ./build
  25. run: make slic3r
  26. - name: create directory and copy into it
  27. working-directory: ./build
  28. run: |
  29. mkdir package
  30. mkdir package/bin
  31. - name: copy resources
  32. working-directory: ./build
  33. run: cp -Rf ../resources package/resources
  34. - name: copy bin
  35. working-directory: ./build
  36. run: cp -f src/slic3r++ package/bin/slic3r++
  37. - name: create sh from echo
  38. working-directory: ./build/package
  39. run: echo -e '#!/bin/bash\nDIR=$(readlink -f "$0" | xargs dirname)\nexport LD_LIBRARY_PATH="$DIR/bin"\nexec "$DIR/bin/slic3r++" "$@"' >slic3r++
  40. - name: Upload artifact
  41. uses: actions/upload-artifact@v1.0.0
  42. with:
  43. name: nightly_linux
  44. path: build/package/