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/)
|
|
|
|
|
2023-07-16 20:21:43 +00:00
|
|
|
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org) [![](https://img.shields.io/badge/Rust-1.71.0-orange)](https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html)
|
2023-06-02 19:08:53 +00:00
|
|
|
|
2019-01-25 23:56:40 +00:00
|
|
|
*What's inside the "box":*
|
2019-01-25 22:47:25 +00:00
|
|
|
|
2023-07-16 20:21:43 +00:00
|
|
|
* Rust 1.71.0
|
2019-01-25 22:47:25 +00:00
|
|
|
* Rustfmt
|
|
|
|
* Clippy
|
|
|
|
* Cargo Release
|
2023-06-02 19:08:53 +00:00
|
|
|
* Cmake
|
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
|
2023-06-02 19:08:53 +00:00
|
|
|
- uses: mirlahiji/rust-action@master
|
2019-11-08 23:48:03 +00:00
|
|
|
with:
|
|
|
|
args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test
|
2019-01-25 22:47:25 +00:00
|
|
|
```
|
2023-06-02 19:08:53 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
> Thanks to @ [icepuma](https://github.com/icepuma) for handing over the project and @ [bwasty](https://github.com/bwasty) for Cmake
|