-
Notifications
You must be signed in to change notification settings - Fork 57
60 lines (50 loc) · 1.42 KB
/
build.yml
File metadata and controls
60 lines (50 loc) · 1.42 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: webpki-roots
on:
push:
branches: ['main', 'ci/*']
pull_request:
merge_group:
schedule:
- cron: '0 18 * * *'
workflow_dispatch:
jobs:
build:
name: Build+test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: cargo build (debug; default features)
run: cargo build --locked --all-targets
- name: cargo fmt
run: cargo fmt -- --check
- name: cargo clippy
run: cargo clippy --locked --all-targets -- -D warnings
- name: cargo test (debug; default features)
run: cargo test --locked
semver:
name: Check semver compatibility
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
msrv:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.64.0
- run: cargo check --locked --lib --manifest-path webpki-roots/Cargo.toml
- run: cargo check --locked --lib --manifest-path webpki-root-certs/Cargo.toml