-
Notifications
You must be signed in to change notification settings - Fork 18
138 lines (130 loc) · 3.84 KB
/
rustls-rustcrypto.yml
File metadata and controls
138 lines (130 loc) · 3.84 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
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: Swatinem/rust-cache@v2
- run: cargo clippy --all --all-features -- -D warnings
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- run: cargo doc --all-features --no-deps
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: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- run: cargo build --no-default-features --features tls12,full,alloc --release --target ${{ matrix.target }}
env:
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: Swatinem/rust-cache@v2
with:
key: ${{ matrix.toolchain }}
- run: cargo test --features tls12
- name: Test no_std with alloc
run: cargo test --no-default-features --features tls12,full,alloc
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"