diff options
author | RustDesk <[email protected]> | 2022-07-27 16:03:54 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-27 16:03:54 +0800 |
commit | 9036b7b9fa18b29c7317ac5cbf886122dbceb249 (patch) | |
tree | 4891387138c419023085a45a239e69335fe07f0d /.github | |
parent | b1ad5c2e0ca17d60f6e0cb3de12fce8a0f20f059 (diff) | |
parent | 1c5d4c3cb233229aed1ac7462dcb0237100cd511 (diff) | |
download | rustdesk-server-9036b7b9fa18b29c7317ac5cbf886122dbceb249.tar.gz rustdesk-server-9036b7b9fa18b29c7317ac5cbf886122dbceb249.zip |
Merge pull request #78 from paspo/pack-release
Zipped release binaries
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yaml | 47 |
1 files changed, 18 insertions, 29 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a9570f2..461f80c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -75,45 +75,34 @@ jobs: name: Github release needs: build runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + job: + - { name: "amd64" } + - { name: "arm64v8" } + - { name: "armv7" } + - { name: "i386" } steps: - - name: Download binaries (amd64) - uses: actions/download-artifact@v3 - with: - name: binaries-amd64 - path: amd64 - - - name: Download binaries (arm64v8) - uses: actions/download-artifact@v3 - with: - name: binaries-arm64v8 - path: arm64v8 - - - name: Download binaries (armv7) + - name: Download binaries (${{ matrix.job.name }}) uses: actions/download-artifact@v3 with: - name: binaries-armv7 - path: armv7 - - - name: Download binaries (i386) - uses: actions/download-artifact@v3 - with: - name: binaries-i386 - path: i386 + name: binaries-${{ matrix.job.name }} + path: ${{ matrix.job.name }} - - name: Rename files - run: for arch in amd64 arm64v8 armv7 i386 ; do for b in hbbr hbbs rustdesk-utils ; do mv -v ${arch}/${b} ${arch}/${b}-${arch} ; done ; done + - name: Pack files (${{ matrix.job.name }}) + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive sudo apt install -y zip + zip ${{ matrix.job.name }}/rustdesk-server-linux-${{ matrix.job.name }}.zip ${{ matrix.job.name }}/hbbr ${{ matrix.job.name }}/hbbs ${{ matrix.job.name }}/rustdesk-utils - - name: Create Release + - name: Create Release (${{ matrix.job.name }}) uses: softprops/action-gh-release@v1 with: draft: true - files: | - amd64/* - arm64v8/* - armv7/* - i386/* + files: ${{ matrix.job.name }}/rustdesk-server-linux-${{ matrix.job.name }}.zip # docker build and push of single-arch images docker: |