2019-01-25 22:47:25 +00:00
|
|
|
# Rust Github Action
|
|
|
|
|
2023-05-31 21:32:27 +00:00
|
|
|
:warning: Action is deprecated, please use [rust-action](https://github.com/Mirlahiji/rust-action).
|
2023-05-31 21:34:41 +00:00
|
|
|
Thanks to [Mirlahiji](https://github.com/Mirlahiji) for taking over the project :heart:
|
2022-10-17 18:39:11 +00:00
|
|
|
|
2019-01-25 22:47:25 +00:00
|
|
|
'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
|
|
|
|
2023-03-09 15:44:20 +00:00
|
|
|
* Rust 1.68.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
|
|
|
```
|