ccpp_ubuntu_gtk3_rc.yml 1.4 KB

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