rust-action/README.md

38 lines
825 B
Markdown
Raw Permalink Normal View History

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-10-05 20:12:12 +00:00
[![img](https://img.shields.io/badge/Rust-1.73.0-orange)](https://blog.rust-lang.org/2023/10/05/Rust-1.73.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-10-05 20:12:12 +00:00
* Rust 1.73.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