-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.15 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
38
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# Test against Rust 1.70.0 because that is the oldest supported version
# according to Cargo.toml. Test against beta and nightly Rust to get
# early warning of any problems that might occur with the upcoming Rust
# release. Ordered oldest Rust to newest Rust.
rust: [1.71.0, stable, beta, nightly]
# Test with no features, default features ("") and all features.
# Ordered fewest features to most features.
args: ["--no-default-features", "", "--all-features"]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
# - if: matrix.rust == 'stable'
# run: rustup component add clippy
# - if: matrix.rust == 'stable'
# run: cargo clippy -- -D warnings
- run: cargo build --verbose ${{ matrix.args }}
- run: cargo test --verbose ${{ matrix.args }}