ccpp_ubuntu_gtk3_rc.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: change date in version
  20. run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc
  21. - name: update clock
  22. run: sudo hwclock -s
  23. - name: update apt
  24. run: sudo apt update
  25. - name: install gtk3 glew
  26. run: sudo apt install libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext
  27. - name: build deps & slicer, tar & appimage
  28. run: ./BuildLinux.sh -dsi
  29. - name: Upload artifact
  30. uses: actions/upload-artifact@v1.0.0
  31. with:
  32. name: rc_linux_gtk3.tar
  33. path: build/${{ github.event.repository.name }}.tar
  34. - name: Upload appimage
  35. uses: actions/upload-artifact@v1.0.0
  36. with:
  37. name: rc-${{ github.event.repository.name }}-gtk3.AppImage
  38. path: build/${{ github.event.repository.name }}_ubu64.AppImage