Create Armv7l debian package (#1068)
* Create Armv7l debian package * returned inadvertently removed comment. --------- Co-authored-by: Gijs Keij <gijs.keij@bit-key.nl>
This commit is contained in:
@@ -6,14 +6,15 @@ on:
|
|||||||
# types:
|
# types:
|
||||||
# - completed
|
# - completed
|
||||||
release:
|
release:
|
||||||
types: [ created ]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [
|
target:
|
||||||
|
[
|
||||||
"aarch64-unknown-linux-gnu",
|
"aarch64-unknown-linux-gnu",
|
||||||
"armv7-unknown-linux-gnueabihf",
|
"armv7-unknown-linux-gnueabihf",
|
||||||
"x86_64-unknown-linux-musl",
|
"x86_64-unknown-linux-musl",
|
||||||
@@ -29,9 +30,14 @@ jobs:
|
|||||||
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install cargo-deb cross compilation dependencies for armv7
|
||||||
|
run: sudo apt-get install libc6-armhf-cross libgcc-s1-armhf-cross
|
||||||
|
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Install cargo-deb
|
- name: Install cargo-deb
|
||||||
run: cargo install cargo-deb
|
run: cargo install cargo-deb
|
||||||
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'armv7-unknown-linux-gnueabihf' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: install targets
|
- name: install targets
|
||||||
@@ -75,14 +81,14 @@ jobs:
|
|||||||
rm -rf target/${{matrix.target}}
|
rm -rf target/${{matrix.target}}
|
||||||
cross build --release --target ${{matrix.target}}
|
cross build --release --target ${{matrix.target}}
|
||||||
cargo deb --target=${{matrix.target}} --no-build --no-strip
|
cargo deb --target=${{matrix.target}} --no-build --no-strip
|
||||||
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'armv7-unknown-linux-gnueabihf' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Move Debian-based system package
|
- name: Move Debian-based system package
|
||||||
run: |
|
run: |
|
||||||
mkdir -p assets
|
mkdir -p assets
|
||||||
mv target/${{matrix.target}}/debian/*.deb assets
|
mv target/${{matrix.target}}/debian/*.deb assets
|
||||||
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'armv7-unknown-linux-gnueabihf' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
|
|||||||
Reference in New Issue
Block a user