diff options
| author | Fuwn <[email protected]> | 2021-06-07 08:34:20 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-06-07 08:34:20 +0000 |
| commit | f3605130069b7edffaba7f20bbb2c0f458541da5 (patch) | |
| tree | 167b03eab67468053cc527d7d4dbdb228114d637 /.github/workflows | |
| parent | Merge branch 'main' of https://github.com/fuwn/nitrous (diff) | |
| download | nitrous-f3605130069b7edffaba7f20bbb2c0f458541da5.tar.xz nitrous-f3605130069b7edffaba7f20bbb2c0f458541da5.zip | |
ci(actions): create rust compilation workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/rust.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..bee025e --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,36 @@ +name: Rust ✅ + +on: + push: + paths: + - "src/**" + - "Cargo.toml" + pull_request: + paths: + - "src/**" + - "Cargo.toml" + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-20.04 + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-06-04 + components: rustfmt, clippy + override: true + + - name: Check ✅ + uses: actions-rs/cargo@v1 + continue-on-error: false + with: + command: check + args: --verbose |