-
Notifications
You must be signed in to change notification settings - Fork 17
156 lines (148 loc) · 4.47 KB
/
rustls-rustcrypto.yml
File metadata and controls
156 lines (148 loc) · 4.47 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: rustls-rustcrypto
on:
pull_request:
paths-ignore:
- README.md
push:
branches: [master]
paths-ignore:
- README.md
permissions:
contents: read
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.88.0
components: clippy
- uses: mozilla-actions/sccache-action@v0.0.9
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all --all-features -- -D warnings
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: mozilla-actions/sccache-action@v0.0.9
- uses: Swatinem/rust-cache@v2
- run: cargo doc --all-features --no-deps
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
no_std:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.88.0
target: armv7a-none-eabi
- rust: stable
target: armv7a-none-eabi
- rust: 1.88.0
target: thumbv7em-none-eabi
- rust: stable
target: thumbv7em-none-eabi
- rust: 1.88.0
target: wasm32-unknown-unknown
- rust: stable
target: wasm32-unknown-unknown
- rust: 1.88.0
target: riscv32imac-unknown-none-elf
- rust: stable
target: riscv32imac-unknown-none-elf
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: mozilla-actions/sccache-action@v0.0.9
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- run: cargo build --no-default-features --features tls12,full,alloc --release --target ${{ matrix.target }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
RUSTFLAGS: --cfg getrandom_backend="custom"
test:
strategy:
matrix:
toolchain:
- 1.88.0 # MSRV
- stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: mozilla-actions/sccache-action@v0.0.9
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.toolchain }}
- run: cargo test --features tls12
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
- name: Test no_std with alloc
run: cargo test --no-default-features --features tls12,full,alloc
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
cross:
strategy:
matrix:
include:
- target: powerpc-unknown-linux-gnu
rust: 1.88.0 # MSRV
- target: powerpc-unknown-linux-gnu
rust: stable
- target: aarch64-unknown-linux-gnu
rust: 1.88.0
- target: aarch64-unknown-linux-gnu
rust: stable
- target: armv7-unknown-linux-gnueabihf
rust: 1.88.0
- target: armv7-unknown-linux-gnueabihf
rust: stable
- target: riscv64gc-unknown-linux-gnu
rust: 1.88.0
- target: riscv64gc-unknown-linux-gnu
rust: stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cross-compile library
uses: houseabsolute/actions-rust-cross@v1
with:
command: build
target: ${{ matrix.target }}
toolchain: ${{ matrix.rust }}
args: "--release --all-features"
- name: Cross-test library
uses: houseabsolute/actions-rust-cross@v1
with:
command: test
target: ${{ matrix.target }}
toolchain: ${{ matrix.rust }}
args: "--release --all-features"