https://github.com/ebbflow-io/cargo-deb-amd64-ubuntu
Action for creating statically-linked .deb package for Rust projects using cargo deb
https://github.com/ebbflow-io/cargo-deb-amd64-ubuntu
actions amd64 cargo package rust ubuntu
Last synced: 4 months ago
JSON representation
Action for creating statically-linked .deb package for Rust projects using cargo deb
- Host: GitHub
- URL: https://github.com/ebbflow-io/cargo-deb-amd64-ubuntu
- Owner: ebbflow-io
- Created: 2020-06-04T01:18:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T10:28:35.000Z (over 3 years ago)
- Last Synced: 2025-10-22T12:03:02.798Z (8 months ago)
- Topics: actions, amd64, cargo, package, rust, ubuntu
- Language: Shell
- Homepage: https://ebbflow.io
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `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
- https://github.com/mmstick/cargo-deb
- https://crates.io/crates/cargo-deb
**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](https://github.com/clux/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/`.
## Example Usage
```yaml
name: Deb Static Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Deb Build
uses: ebbflow-io/cargo-deb-amd64-ubuntu@1.0
```
A working example can be found in use by Ebbflow to build its client package for various OS and CPU architectures [here](https://github.com/ebbflow-io/ebbflow/blob/master/.github/workflows/continuous-integration.yml).