-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.63 KB
/
dependencies.yaml
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
# SPDX-FileCopyrightText: © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Dependencies
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
pass-security-audit:
name: Pass security audit?
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/rust-toolchain
with:
toolchain: 1.66
- run: cargo install --locked cargo-audit
- run: cargo audit
are-dependencies-sorted:
name: Are the dependencies sorted?
needs: [pass-security-audit]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/rust-toolchain
with:
toolchain: 1.66
- run: cargo install --locked cargo-sort
- run: cargo sort --workspace --check
are-versions-really-minimal:
name: Are versions really minimal?
needs: [pass-security-audit]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/rust-toolchain
with:
toolchain: nightly
- run: rustup override set nightly
# proc-macro2 is broken in recent nightly versions of Rust as it
# automagically enables some nightly features that don't exist on recent
# nightly compilers.
#
# Once our dependencies update the proc-macro2 version used to be higher
# than the one pinned here we can remove this hack.
#
# This is not needed for stable versions.
- run: cargo update -p proc-macro2 --precise 1.0.66 -Z minimal-versions
- run: cargo check -Z minimal-versions