ccpp_ubuntu_gtk2.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: C/C++ Nightly ubuntu-GTK2
  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 clock
  19. run: sudo hwclock -s
  20. - name: update apt
  21. run: sudo apt update
  22. - name: install gtk2
  23. run: sudo apt install libgtk2.0-dev
  24. - name: install libs
  25. run: sudo ./BuildLinux.sh -u
  26. - name: dep cache
  27. id: cache-action
  28. uses: actions/cache@v3
  29. with:
  30. key: ubu_gtk2_2.7
  31. path: deps/build/destdir
  32. - if: steps.cache-action.outputs.cache-hit != 'true'
  33. name: build deps if new cache
  34. run: ./BuildLinux.sh -gd
  35. - name: slicer, tar & appimage
  36. run: ./BuildLinux.sh -gsiv
  37. - name: Upload artifact
  38. uses: actions/upload-artifact@v4
  39. with:
  40. name: nightly_${{ github.event.repository.name }}-linux-x64-GTK2.tgz
  41. path: build/${{ github.event.repository.name }}-linux-x64-GTK2.tgz
  42. - name: Upload appimage
  43. uses: actions/upload-artifact@v4
  44. with:
  45. name: nightly_${{ github.event.repository.name }}-linux-x64-GTK2.AppImage
  46. path: build/${{ github.event.repository.name }}-linux-x64-GTK2.AppImage