Skip to content

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

License

Notifications You must be signed in to change notification settings

sassman/rust-deb-builder

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published