-
-
Notifications
You must be signed in to change notification settings - Fork 119
56 lines (43 loc) · 1.22 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
MSRV: "1.56"
jobs:
test:
name: "${{ matrix.os.name }} (${{ matrix.toolchain }})"
continue-on-error: false
runs-on: ${{ matrix.os.distro }}
strategy:
fail-fast: false
matrix:
os:
- { name: Linux, distro: ubuntu-latest }
- { name: Windows, distro: windows-latest }
toolchain: [stable, beta, nightly]
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Run Tests
run: "cargo update && ./scripts/test.sh"
shell: bash
msrv:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@nightly
- name: Downgrade Dependencies to Minimal Versions
run: cargo update -Z minimal-versions
- name: Install MSRV (${{ env.MSRV }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- name: Run Tests
run: ./scripts/test.sh