ccpp_ubuntu_gtk2_rc.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: C/C++ Release candidate ubuntu-GTK2
  2. on:
  3. push:
  4. branches:
  5. - rc
  6. jobs:
  7. build:
  8. runs-on: ubuntu-20.04
  9. steps:
  10. - uses: actions/checkout@v3
  11. with:
  12. ref: 'rc'
  13. - name: Setup cmake
  14. uses: jwlawson/actions-setup-cmake@v1.13
  15. with:
  16. cmake-version: '3.16.x'
  17. - name: update clock
  18. run: sudo hwclock -s
  19. - name: update apt
  20. run: sudo apt update
  21. - name: install gtk2
  22. run: sudo apt install libgtk2.0-dev
  23. - name: install libs
  24. run: sudo ./BuildLinux.sh -u
  25. - name: dep cache
  26. id: cache-action
  27. uses: actions/cache@v3
  28. with:
  29. key: ubu_gtk2_2.7
  30. path: deps/build/destdir
  31. - if: steps.cache-action.outputs.cache-hit != 'true'
  32. name: build deps if new cache
  33. run: ./BuildLinux.sh -gd
  34. - name: slicer, tar & appimage
  35. run: ./BuildLinux.sh -gsi
  36. - name: Upload artifact
  37. uses: actions/upload-artifact@v4
  38. with:
  39. name: rc_${{ github.event.repository.name }}-linux-x64-GTK2.tgz
  40. path: build/${{ github.event.repository.name }}-linux-x64-GTK2.tgz
  41. - name: Upload appimage
  42. uses: actions/upload-artifact@v4
  43. with:
  44. name: rc_${{ github.event.repository.name }}-linux-x64-GTK2.AppImage
  45. path: build/${{ github.event.repository.name }}-linux-x64-GTK2.AppImage