Skip to content

Nova Labs Rust Cargo Deb Package Build (amd64, Ubuntu)

Actions
Builds a statically linked .deb package, amd64, musl, ubuntu
v2.7
Latest
Star (1)

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.

Uses tomato-toml to update Cargo.toml with a version from the build tag. The version update is not commited back to the repo. If you want to do that, you can include the commit action on Cargo.toml.

cargo doesn't like versions that don't use semver components, like date formatted version strings.

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: novalabsxyz/[email protected]

Nova Labs Rust Cargo Deb Package Build (amd64, Ubuntu) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Builds a statically linked .deb package, amd64, musl, ubuntu
v2.7
Latest

Nova Labs Rust Cargo Deb Package Build (amd64, Ubuntu) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.