2019-01-25 22:47:25 +00:00
|
|
|
# Rust Github Action
|
|
|
|
|
|
|
|
'Silverbullet' for a quickstart Rust CI based upon [Github Actions](https://developer.github.com/actions/)
|
|
|
|
|
2019-01-25 23:56:40 +00:00
|
|
|
*What's inside the "box":*
|
2019-01-25 22:47:25 +00:00
|
|
|
|
2020-08-31 22:39:07 +00:00
|
|
|
* Rust 1.46.0
|
2019-01-25 22:47:25 +00:00
|
|
|
* Rustfmt
|
|
|
|
* Clippy
|
|
|
|
* Cargo Release
|
2019-05-13 17:41:03 +00:00
|
|
|
* cmake - Thanks @ [bwasty](https://github.com/bwasty)
|
2019-01-25 22:47:25 +00:00
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
2019-11-08 23:48:03 +00:00
|
|
|
In a file inside `.github/workflows/quickstart.yml`
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
name: Rust Example
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: icepuma/rust-action@master
|
|
|
|
with:
|
|
|
|
args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test
|
2019-01-25 22:47:25 +00:00
|
|
|
```
|