cargo deb
Build Environment (debian aarch64 / armv8)
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 aarch64-unknown-linux-musl
. 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.
Inputs
cmd
- The command to be executed inside the container. Defaults to cargo deb --target=aarch64-unknown-linux-musl
Outputs
None, besides the deb
package that is built. The built .deb
will be located in target/aarch64-unknown-linux-musl/debian/<DEB>
.
Example Usage
name: Deb Static Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Deb Build
uses: jamesmcm/cargo-deb-aarch64-debian@master