Compare commits

...

3 Commits

Author SHA1 Message Date
e13a81f814
use +nightly (#2)
* use +nightly
2020-11-16 08:46:34 +01:00
95ce925286
Merge pull request #1 from umanux/enaut-add-rust-workflow
Add rust workflow
2020-11-16 08:11:18 +01:00
60e6eb6fa4
Add rust workflow 2020-11-16 08:11:00 +01:00

40
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test