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@v3
  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 clock
  20. run: sudo hwclock -s
  21. - name: update apt
  22. run: sudo apt update
  23. - name: install gtk3
  24. run: sudo apt install libgtk-3-dev
  25. - name: install libs
  26. run: sudo ./BuildLinux.sh -u
  27. - name: dep cache
  28. id: cache-action
  29. uses: actions/cache@v3
  30. with:
  31. key: ubu_gtk3_2.7
  32. path: deps/build/destdir
  33. - if: steps.cache-action.outputs.cache-hit != 'true'
  34. name: build deps if new cache
  35. run: ./BuildLinux.sh -d
  36. - name: slicer, tar & appimage
  37. run: ./BuildLinux.sh -si
  38. - name: Upload artifact
  39. uses: actions/upload-artifact@v4
  40. with:
  41. name: rc_${{ github.event.repository.name }}-linux-x64-GTK3.tgz
  42. path: build/${{ github.event.repository.name }}-linux-x64-GTK3.tgz
  43. - name: Upload appimage
  44. uses: actions/upload-artifact@v4
  45. with:
  46. name: rc_${{ github.event.repository.name }}-linux-x64-GTK3.AppImage
  47. path: build/${{ github.event.repository.name }}-linux-x64-GTK3.AppImage