ccpp_ubuntu_gtk3.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: C/C++ Nightly ubuntu-GTK3
  2. on:
  3. push:
  4. branches:
  5. - Nigthly
  6. - nightly_dev
  7. - nightly_master
  8. - debug_ubuntu
  9. jobs:
  10. build:
  11. runs-on: ubuntu-20.04
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Setup cmake
  15. uses: jwlawson/actions-setup-cmake@v1.13
  16. with:
  17. cmake-version: '3.16.x'
  18. - name: update submodule profiles
  19. working-directory: ./resources/profiles
  20. run: git submodule update --init
  21. - name: change date in version
  22. run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc
  23. - name: update clock
  24. run: sudo hwclock -s
  25. - name: update apt
  26. run: sudo apt update
  27. - name: install gtk3 glew
  28. run: sudo apt install libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext
  29. - name: build deps & slicer
  30. run: ./BuildLinux.sh -ds
  31. - name: make .pot
  32. working-directory: ./build
  33. run: make gettext_make_pot
  34. - name: build tar & appimage
  35. working-directory: ./build
  36. run: src/BuildLinuxImage.sh -i
  37. - name: Upload artifact
  38. uses: actions/upload-artifact@v1.0.0
  39. with:
  40. name: nightly_linux_gtk3.tar
  41. path: build/${{ github.event.repository.name }}.tar
  42. - name: Upload appimage
  43. uses: actions/upload-artifact@v1.0.0
  44. with:
  45. name: ${{ github.event.repository.name }}-gtk3.AppImage
  46. path: build/${{ github.event.repository.name }}_ubu64.AppImage