Skip to content
play-circle

GitHub Action

Rust Action Box

v1.83.0 Latest version

Rust Action Box

play-circle

Rust Action Box

'Silverbullet' for a quickstart Rust CI based upon Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Rust Action Box

uses: MachineDynamo/rust-action@v1.83.0

Learn more about this action in MachineDynamo/rust-action

Choose a version

Rust Github Action

'Silverbullet' for a quickstart Rust CI based upon Github Actions

img

What's inside the "box":

  • Rust 1.81.0
  • Rustfmt
  • Clippy
  • Cargo Release
  • Cmake

Usage

In a file inside .github/workflows/quickstart.yml

name: Rust Example

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - uses: MachineDynamo/rust-action@master
        with:
          args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test

Thanks to @ icepuma for handing over the project and @ bwasty for Cmake