Skip to content

Commit

Permalink
Exercise aws-lc-rs in CI
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
ctz committed Sep 20, 2023
1 parent 3e672ae commit 45b74d0
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable

- run: cargo package
- run: cargo package --all-features

test:
name: Build+test
Expand All @@ -111,6 +111,7 @@ jobs:
- --features=alloc
- --all-features
- --no-default-features
- --no-default-features --features alloc,std,aws_lc_rs

mode:
- # debug
Expand All @@ -126,6 +127,7 @@ jobs:
- features: --features=alloc
- features: --no-default-features
- features: --no-default-features --features alloc,std
- features: --no-default-features --features alloc,std,aws_lc_rs
- features: --all-features
mode: --release
- features: --all-features
Expand Down Expand Up @@ -185,6 +187,23 @@ jobs:
mode: # debug
rust_channel: stable
host_os: ubuntu-latest

# check aws-lc-rs alone
- features: --no-default-features --features alloc,std,aws_lc_rs
mode: # debug
rust_channel: stable
host_os: macos-latest

- features: --no-default-features --features alloc,std,aws_lc_rs
mode: # debug
rust_channel: stable
host_os: windows-latest

- features: --no-default-features --features alloc,std,aws_lc_rs
mode: # debug
rust_channel: stable
host_os: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -196,6 +215,10 @@ jobs:
with:
toolchain: ${{ matrix.rust_channel }}

- name: Install NASM for aws-lc-rs on Windows
if: runner.os == 'Windows'
uses: ilammy/setup-nasm@v1

- name: cargo test (${{ matrix.mode }}, ${{ matrix.features }})
run: cargo test -vv ${{ matrix.features }} ${{ matrix.mode }} -- --ignored
env:
Expand Down

0 comments on commit 45b74d0

Please sign in to comment.