/cargo-static-build

Primary LanguageShellMIT LicenseMIT

Cargo Static Build Docker Action

This action builds static linked binaries for rust projects, using clux/muslrust.

Inputs

cmd

Build command, default to cargo build.

Outputs

None.

Example usage

name: Cargo Static Build

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Build and Test
      uses: alank976/cargo-static-build
      with:
        cmd: cargo test