Skip to content
Github actions to build rust projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
build
clippy
fmt
quickstart
release
src
.gitignore
Cargo.lock
Cargo.toml
README.md

README.md

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"]
}
You can’t perform that action at this time.