-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (36 loc) · 1.05 KB
/
basic.yml
File metadata and controls
46 lines (36 loc) · 1.05 KB
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
39
40
41
42
43
44
45
46
on: [push, pull_request]
name: CI
env:
CARGO_TERM_COLOR: always
jobs:
basic:
name: Basic
runs-on: ubuntu-latest
strategy:
matrix:
features:
- ''
- '--features=blocking'
- '--no-default-features'
- '--no-default-features --features=rustls-tls'
rust:
- stable
- beta
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.rust }} toolchain
run: |
rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt,clippy
rustup default ${{ matrix.rust }}
- name: Cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.features }}
- name: Build all targets
run: cargo build --all-targets ${{ matrix.features }}
- name: Run the test suite
run: cargo test ${{ matrix.features }}
- name: Check formatting
run: cargo fmt --check
- name: Check clippy lints
run: cargo clippy ${{ matrix.features }} -- -D warnings