This repository is a simple fork of cargo-deb-armv7-debian.
Provides a build environment for executing cargo-deb
[1] and producing statically linked binaries for the built Debian (.deb
) package.
This build on a debian:buster
base image and targets armv7-unknown-linux-musleabihf
. The musl
installation is possible thanks to the cross project [2].
The interface for this package was inspired/copied from the cargo-static-build [3] action.
[1] Cargo Deb provided by mmstick
[2] MUSL environment made possible thanks to cross
dual-licensed under Apache 2.0 or MIT
[3] https://github.com/zhxiaogg/cargo-static-build
NOTE: This package may fail to build your project if your build links against other OS-provided libraries. Feel free to open a pull-request to modify the Dockerfile
so your project can build.
cmd
- The command to be executed inside the container. Defaults to cargo deb --target=armv7-unknown-linux-musleabihf
None, besides the deb
package that is built. The built .deb
will be located in target/armv7-unknown-linux-musleabih/debian/<DEB>
.
name: Build deb package
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build .deb
uses: asthowen/CargoDebARMv7@main