aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorRustDesk <[email protected]>2022-07-21 17:12:23 +0800
committerGitHub <[email protected]>2022-07-21 17:12:23 +0800
commit670fb87ee11e74338214c010a8eb4ab125664bfe (patch)
tree9f702cf68b491957ad6ed32d4e3a89ba5db94807 /.github
parent50d7975ad83d2d54801a16274503dac2f5f9d729 (diff)
parent3340322355ed8439ee998884d15c09e3674f09d3 (diff)
downloadrustdesk-server-670fb87ee11e74338214c010a8eb4ab125664bfe.tar.gz
rustdesk-server-670fb87ee11e74338214c010a8eb4ab125664bfe.zip
Merge pull request #64 from paspo/deb_package
.deb packaging
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index b3e82cf..a757901 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -290,3 +290,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