mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
ci(deb): add arm64 deb packaging to cd
This commit is contained in:
parent
ade69d7bff
commit
577289ee7d
22
.github/workflows/cd.yml
vendored
22
.github/workflows/cd.yml
vendored
@ -175,10 +175,18 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish-release-deb:
|
||||
name: publish-release-deb
|
||||
name: publish-release-deb for ${{ matrix.target }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-unknown-linux-musl
|
||||
- target: armv7-unknown-linux-musleabihf
|
||||
|
||||
|
||||
env:
|
||||
TARGET: x86_64-unknown-linux-musl
|
||||
TARGET: ${{ matrix.target }}
|
||||
# Emit backtraces on panics.
|
||||
RUST_BACKTRACE: 1
|
||||
# Since we're distributing the dpkg, we don't know whether the user will
|
||||
@ -210,13 +218,7 @@ jobs:
|
||||
- name: Add rustup target
|
||||
shell: bash
|
||||
run: |
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
# for some reason, the above action doesn't seem to set the target correctly
|
||||
- name: Add rustup target
|
||||
shell: bash
|
||||
run: |
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
rustup target add ${{ env.TARGET }}
|
||||
|
||||
- name: Install cargo-deb
|
||||
shell: bash
|
||||
@ -236,7 +238,7 @@ jobs:
|
||||
cargo deb --profile deb --target ${{ env.TARGET }}
|
||||
version="${{ github.ref_name }}"
|
||||
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV
|
||||
echo "DEB_NAME=television_$version-1_amd64.deb" >> $GITHUB_ENV
|
||||
echo "DEB_NAME=television_$version-1_${{ env.TARGET }}.deb" >> $GITHUB_ENV
|
||||
|
||||
- name: Create sha256 sum of deb file
|
||||
shell: bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user