diff options
-rw-r--r-- | .github/workflows/standard.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/standard.yml b/.github/workflows/standard.yml new file mode 100644 index 0000000..3a2c4aa --- /dev/null +++ b/.github/workflows/standard.yml @@ -0,0 +1,51 @@ +name: Standard checks + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: +# - stable +# - beta + - nightly +# - 1.31.0 # MSRV + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt + + - uses: actions-rs/cargo@v1 + with: + command: build + + - uses: actions-rs/cargo@v1 + with: + command: build + args: --all-features + + - uses: actions-rs/cargo@v1 + with: + command: test + + - uses: actions-rs/cargo@v1 + with: + command: test + args: --features performance-counter #--all-features will currently fail + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check |