Sign inSign up

5422m4n/rust-deb-builder

By 5422m4n

Updated 8 months ago

rust static debian package builder. Usues target x86_64-unknown-linux-musl.

Image
0

3.0K

5422m4n/rust-deb-builder repository overview

Rust package builder for .deb (x86_64-unknown-linux-musl)

Builds statically linked binaries and packages it as .deb using docker

Usage via GitHub actions

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
Parameters
  • package: the package name, in case your crate as multiple bin targets
  • target: default: x86_64-unknown-linux-musl

Usage via docker

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

details

it's based on the official rust image:

References

Tag summary

Content type

Image

Digest

sha256:195e544e7

Size

625.2 MB

Last updated

8 months ago

docker pull 5422m4n/rust-deb-builder