summaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml19
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 621067a..582bdcb 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -20,13 +20,13 @@ jobs:
- nightly
steps:
- uses: actions/checkout@v2
+
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- components: rustfmt, clippy
-
+ components: clippy
- uses: actions-rs/cargo@v1
with:
command: build
@@ -37,9 +37,16 @@ jobs:
args: --features all --verbose
- uses: actions-rs/cargo@v1
with:
- command: fmt
- args: --verbose --all -- --check
- - uses: actions-rs/cargo@v1
- with:
command: clippy
args: --features all -- -D warnings
+
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ components: rustfmt
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --verbose --all -- --check