From 45b74d08ef45da79f9ec849cb2ebd8ef76e2745f Mon Sep 17 00:00:00 2001 From: Joseph Birr-Pixton Date: Wed, 20 Sep 2023 10:52:34 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e22b2ad..8d08e691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -111,6 +111,7 @@ jobs: - --features=alloc - --all-features - --no-default-features + - --no-default-features --features alloc,std,aws_lc_rs mode: - # debug @@ -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 @@ -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 @@ -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: