summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-07-30 09:29:42 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-07-30 09:29:42 -0400
commit8c9500478c09fe8a224309605e12c5f52f32db62 (patch)
tree0e8a516fae9d95b859346fb0e7b2dff479dbbfa5 /.github
parentb8b85d08b29b74d08b2ea584124ed1ebfd7ca9df (diff)
Revert "Delete rust.yml"
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..fe19c40
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,32 @@
+name: Rust
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ check:
+ name: Rust ${{ matrix.rust }}
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust: [1.41.0, stable, beta]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install minimal ${{ matrix.rust }} rust
+ uses: actions-rs/toolchain@b2417cd
+ with:
+ override: true
+ profile: minimal
+ toolchain: ${{ matrix.rust }}
+ - run: cargo -Vv && rustc -Vv
+ - run: cargo check
+ - run: cargo check --all-features
+ - run: cargo clippy -- -Dwarnings -Dclippy::dbg_macro
+ if: ${{ matrix.rust == 'stable' }}
+ - run: cargo fmt --all -- --check
+ if: ${{ matrix.rust == 'stable' }}
+ - run: cargo test
+ if: ${{ matrix.rust == 'stable' }}