Skip to content

Commit 45b74d0

Browse files
committed
Exercise aws-lc-rs in CI
- ensure `cargo package` works with --all-features, otherwise optional modules could be missing from the list in Cargo.toml. - install nasm on windows for aws-lc-rs - run tests against aws-lc-rs on all platforms
1 parent 3e672ae commit 45b74d0

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Install rust toolchain
100100
uses: dtolnay/rust-toolchain@stable
101101

102-
- run: cargo package
102+
- run: cargo package --all-features
103103

104104
test:
105105
name: Build+test
@@ -111,6 +111,7 @@ jobs:
111111
- --features=alloc
112112
- --all-features
113113
- --no-default-features
114+
- --no-default-features --features alloc,std,aws_lc_rs
114115

115116
mode:
116117
- # debug
@@ -126,6 +127,7 @@ jobs:
126127
- features: --features=alloc
127128
- features: --no-default-features
128129
- features: --no-default-features --features alloc,std
130+
- features: --no-default-features --features alloc,std,aws_lc_rs
129131
- features: --all-features
130132
mode: --release
131133
- features: --all-features
@@ -185,6 +187,23 @@ jobs:
185187
mode: # debug
186188
rust_channel: stable
187189
host_os: ubuntu-latest
190+
191+
# check aws-lc-rs alone
192+
- features: --no-default-features --features alloc,std,aws_lc_rs
193+
mode: # debug
194+
rust_channel: stable
195+
host_os: macos-latest
196+
197+
- features: --no-default-features --features alloc,std,aws_lc_rs
198+
mode: # debug
199+
rust_channel: stable
200+
host_os: windows-latest
201+
202+
- features: --no-default-features --features alloc,std,aws_lc_rs
203+
mode: # debug
204+
rust_channel: stable
205+
host_os: ubuntu-latest
206+
188207
steps:
189208
- name: Checkout sources
190209
uses: actions/checkout@v4
@@ -196,6 +215,10 @@ jobs:
196215
with:
197216
toolchain: ${{ matrix.rust_channel }}
198217

218+
- name: Install NASM for aws-lc-rs on Windows
219+
if: runner.os == 'Windows'
220+
uses: ilammy/setup-nasm@v1
221+
199222
- name: cargo test (${{ matrix.mode }}, ${{ matrix.features }})
200223
run: cargo test -vv ${{ matrix.features }} ${{ matrix.mode }} -- --ignored
201224
env:

0 commit comments

Comments
 (0)