ci/cd adjustments #481
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-debian | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: create_tarball | |
| run: | | |
| cd .. | |
| tar --exclude=.git -cvzf packetsender_0.1+testonly.orig.tar.gz PacketSender | |
| - name: create_debian_dir | |
| run: | | |
| cp -a .github/workflows/debian . | |
| - name: install_dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install cmake debhelper devscripts qt6-base-dev qt6-base-dev-tools build-essential | |
| - name: build | |
| run: | | |
| debuild --no-lintian --no-sign | |
| - name: Collect Debian Artifacts | |
| run: | | |
| mkdir -p artifacts | |
| cp ../*.deb artifacts/ || true | |
| cp ../*.ddeb artifacts/ || true | |
| cp ../*.changes artifacts/ || true | |
| cp ../*.buildinfo artifacts/ || true | |
| ls -lh artifacts | |
| - name: Upload Debian Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packetsender-debian-artifacts | |
| path: artifacts/* | |