icepuma / rust-github-actions

Github actions to build rust projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust github actions

Github actions to deal with rust builds.

⚠️ Rust Action will replace this collection of actions in the near future! ⚠️

To use different versions of rust you can reference the action via branch.

Available versions

  • master
  • 1.33.0
  • 1.32.0
  • 1.31.1
  • 1.31.0

Quickstart

Contains fmt & clippy. This action could be used to quickly bootstrap a rust project and its CI with Github Actions.

workflow "Quickstart" {
  on = "push"
  resolves = ["Quickstart"]
}

action "Quickstart" {
  uses = "icepuma/rust-github-actions/quickstart@master"
}

Example

workflow "Build example project" {
  on = "push"
  resolves = ["Release"]
}

action "Format" {
  uses = "icepuma/rust-github-actions/fmt@master"
  args = "-- --check"
}

action "Clippy" {
  uses = "icepuma/rust-github-actions/clippy@master"
  args = "-- -Dwarnings"
  needs = "Format"
}

action "Build" {
  uses = "icepuma/rust-github-actions/build@master"
  needs = "Clippy"
}

action "Release" {
  uses = "icepuma/rust-github-actions/release@master"
  needs = "Build"
  secrets = ["CARGO_LOGIN_TOKEN"]
}

About

Github actions to build rust projects


Languages

Language:Dockerfile 54.5%Language:Shell 33.5%Language:HCL 9.9%Language:Rust 2.0%