diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-07-30 09:29:42 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-07-30 09:29:42 -0400 |
commit | 8c9500478c09fe8a224309605e12c5f52f32db62 (patch) | |
tree | 0e8a516fae9d95b859346fb0e7b2dff479dbbfa5 /.github/workflows/rust.yml | |
parent | b8b85d08b29b74d08b2ea584124ed1ebfd7ca9df (diff) |
Revert "Delete rust.yml"
This reverts commit b8b85d08b29b74d08b2ea584124ed1ebfd7ca9df.
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r-- | .github/workflows/rust.yml | 32 |
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' }} |