Skip to content

Action for creating statically-linked .deb package for Rust projects using cargo deb

Notifications You must be signed in to change notification settings

jamesmcm/cargo-deb-amd64-ubuntu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cargo deb Build Environment (ubuntu amd64)

Provides a build environment for executing cargo deb [1] and producing statically linked binaries for the built Debian (.deb) package.

[1] Cargo Deb provided by mmstick

NOTE: This package may fail to build your project if your build links against other OS-provided libraries. The underlying OS image is provided by muslrust and if additional packages are needed, please follow up with that project.

Inputs

cmd - The command to be executed inside the container. Defaults to cargo deb --target=x86_64-unknown-linux-musl

Outputs

None, besides the deb package that is built. The built .deb will be located in target/x86_64-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: ebbflow-io/[email protected]

A working example can be found in use by Ebbflow to build its client package for various OS and CPU architectures here.

About

Action for creating statically-linked .deb package for Rust projects using cargo deb

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 73.2%
  • Dockerfile 26.8%