-
Notifications
You must be signed in to change notification settings - Fork 152
30 lines (29 loc) · 947 Bytes
/
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
name: ci
on: [push, pull_request]
jobs:
test_validator:
name: Continuous integration
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.70.0 # MSRV
- rust: stable
- rust: beta
- rust: nightly
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build System Info
run: rustc --version
- name: Tests
run: |
cargo build --no-default-features
cargo test --no-default-features
cargo build ${{ matrix.rust == 'stable' && '--all-features' || '--no-default-features --features card,unic,derive' }}
cargo test ${{ matrix.rust == 'stable' && '--all-features' || '--no-default-features --features card,unic,derive' }}