ccpp_ubuntu.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: C/C++ Nigthly ubuntu
  2. on:
  3. push:
  4. branches:
  5. - Nigthly
  6. jobs:
  7. build:
  8. runs-on: ubuntu-18.04
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'Nigthly'
  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: build deps & slicer
  25. run: ./BuildLinux.sh -dgs
  26. - name: make .pot
  27. working-directory: ./build
  28. run: make gettext_make_pot
  29. - name: build tar & appimage
  30. working-directory: ./build
  31. run: src/BuildLinuxImage.sh -i
  32. - name: Upload artifact
  33. uses: actions/upload-artifact@v1.0.0
  34. with:
  35. name: nightly_linux_gtk2.tar
  36. path: build/${{ github.event.repository.name }}.tar
  37. - name: Upload appimage
  38. uses: actions/upload-artifact@v1.0.0
  39. with:
  40. name: ${{ github.event.repository.name }}-gtk2.AppImage
  41. path: build/${{ github.event.repository.name }}_ubu64.AppImage