Builds statically linked binaries and packages it as .deb using docker
name: Build statically linked .deb package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build .deb file
uses: sassman/rust-deb-builder@v1
package
: the package name, in case your crate as multiple bin targetstarget
: default:x86_64-unknown-linux-musl
in your rust crate root dir use it like:
# run this in your crate root where the `Cargo.toml` is located
docker run --rm -v $(pwd):/mnt -w /mnt 5422m4n/rust-deb-builder:latest
it's based on the official rust image: