-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (45 loc) · 1.36 KB
/
dep-reqs.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
name: Dep reqs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 5 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
minimal-deps:
# Build and test with the oldest possible versions of deps. This helps ensure the semver requirements for deps
# are OK.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v1
- name: Set up nightly
run: |
rustup install nightly-2023-06-15
rustup default nightly-2023-06-15
- name: Remove Cargo.lock
run: rm Cargo.lock
- name: Build
run: cargo build --all-features -Zminimal-versions --verbose
- name: Run tests
run: cargo test --all-features --workspace -Zminimal-versions --verbose
maximal-deps:
# Build and test with the newest possible versions of deps. This helps ensure the semver requirements for deps
# are OK.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v1
- name: Update Cargo.lock
run: cargo update
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: cargo test --all-features --workspace --verbose