diff options
author | Paolo Asperti <[email protected]> | 2022-07-15 15:48:54 +0200 |
---|---|---|
committer | Paolo Asperti <[email protected]> | 2022-07-15 18:40:54 +0200 |
commit | 3340322355ed8439ee998884d15c09e3674f09d3 (patch) | |
tree | 6f27d3ca34ba5ad8bf1c442096bac2894f9424a9 /.github/workflows/build.yaml | |
parent | 39153ce1472417be101051baecb452da467f2652 (diff) | |
download | rustdesk-server-3340322355ed8439ee998884d15c09e3674f09d3.tar.gz rustdesk-server-3340322355ed8439ee998884d15c09e3674f09d3.zip |
deb packaging
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r-- | .github/workflows/build.yaml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 632310d..6954966 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -289,3 +289,55 @@ jobs: tags: | ${{ secrets.DOCKER_IMAGE_CLASSIC }}:${{ matrix.job.tag }} labels: ${{ steps.meta.outputs.labels }} + + + deb-package: + + name: debian package - ${{ matrix.job.name }} + needs: build + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + job: + - { name: "amd64", debian_platform: "amd64", crossbuild_package: "" } + - { name: "arm64v8", debian_platform: "arm64", crossbuild_package: "crossbuild-essential-arm64" } + - { name: "armv7", debian_platform: "armhf", crossbuild_package: "crossbuild-essential-armhf" } + - { name: "i386", debian_platform: "i386", crossbuild_package: "crossbuild-essential-i386" } + + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Create packaging env + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive sudo apt install -y devscripts build-essential debhelper pkg-config ${{ matrix.job.crossbuild_package }} + mkdir -p debian-build/${{ matrix.job.name }}/bin + + - name: Download binaries + uses: actions/download-artifact@v3 + with: + name: binaries-${{ matrix.job.name }} + path: debian-build/${{ matrix.job.name }}/bin + + - name: Build package for ${{ matrix.job.name }} arch + run: | + chmod -v a+x debian-build/${{ matrix.job.name }}/bin/* + cp -vr debian systemd debian-build/${{ matrix.job.name }}/ + cat debian/control.tpl | sed 's/{{ ARCH }}/${{ matrix.job.debian_platform }}/' > debian-build/${{ matrix.job.name }}/debian/control + cd debian-build/${{ matrix.job.name }}/ + debuild -i -us -uc -b -a${{ matrix.job.debian_platform }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + debian-build/rustdesk-server-hbbr_*_${{ matrix.job.debian_platform }}.deb + debian-build/rustdesk-server-hbbs_*_${{ matrix.job.debian_platform }}.deb +# debian-build/rustdesk-server-utils_*_${{ matrix.job.debian_platform }}.deb |