Add GitHub Actions CI config
This commit is contained in:
parent
71e787f648
commit
b1eb637112
1 changed files with 31 additions and 0 deletions
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
name: CI
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
HOST: x86_64-unknown-linux-gnu
|
||||
RUSTFLAGS: "-D warnings"
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable, beta, nightly, 1.51.0] # MSRV=1.51
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with: {profile: minimal, toolchain: '${{ matrix.rust }}', override: true}
|
||||
- run: cargo test
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [beta]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with: {profile: minimal, toolchain: '${{ matrix.rust }}', override: true, components: clippy}
|
||||
- run: cargo clippy
|
Loading…
Reference in a new issue