-
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (33 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ci
on: [push, pull_request]
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [1.71, stable, beta, nightly]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
# Because of all the features, we run build and test twice -- once with
# full features and once without any features at all -- to make it more
# likely that everything works.
# Clippy.
#
# Only do this once with all features enabled.
- if: matrix.rust != 'beta'
run: rustup component add clippy
- if: matrix.rust != 'beta'
run: cargo clippy --all --all-features -- -D warnings
# Build
- run: cargo build --verbose --all --all-features
- run: cargo build --verbose --all
# Test
- run: cargo test --verbose --all --all-features
- run: cargo test --verbose --all