ccpp_ubuntu_debug.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: C/C++ debug ubuntu
  2. on:
  3. push:
  4. branches:
  5. - debug_ubuntu
  6. jobs:
  7. build:
  8. runs-on: ubuntu-20.04
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. ref: 'debug_ubuntu'
  13. - name: Setup cmake
  14. uses: jwlawson/actions-setup-cmake@v1.13
  15. with:
  16. cmake-version: '3.16.x'
  17. - name: change date in version
  18. run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc
  19. - name: update clock
  20. run: sudo hwclock -s
  21. - name: update apt
  22. run: sudo apt update
  23. - name: install gtk2 glew
  24. run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev libssl-dev libcurl4-openssl-dev gettext
  25. - name: build deps & slicer, tar & appimage
  26. run: ./BuildLinux.sh -bdgsi
  27. - name: Upload artifact
  28. uses: actions/upload-artifact@v1.0.0
  29. with:
  30. name: nightly_linux_gtk2.tar
  31. path: build/${{ github.event.repository.name }}.tar
  32. - name: Upload appimage
  33. uses: actions/upload-artifact@v1.0.0
  34. with:
  35. name: ${{ github.event.repository.name }}-gtk2.AppImage
  36. path: build/${{ github.event.repository.name }}_ubu64.AppImage