From 660a7c1302dcf36fea2fe7af14a463892d108e67 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Thu, 5 Dec 2024 09:54:40 -0500 Subject: [PATCH] Test more external bindgen Windows targets --- .github/workflows/tests.yml | 39 +++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4d6ac440c00..cef8909b7c5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -267,21 +267,19 @@ jobs: build-env-external-bindgen-test: if: github.repository_owner == 'aws' - name: aws-lc-rs FIPS - External bindgen test + name: aws-lc-rs - External bindgen test (${{ matrix.os }}) runs-on: ${{ matrix.os }} env: AWS_LC_SYS_EXTERNAL_BINDGEN: 1 strategy: fail-fast: false matrix: - os: [ ubuntu-latest, macos-13, macos-14-xlarge, windows-latest ] + os: [ ubuntu-latest, macos-13, macos-14-xlarge ] steps: - uses: actions/checkout@v4 with: submodules: 'recursive' - uses: dtolnay/rust-toolchain@stable - - if: ${{ matrix.os == 'windows-latest' }} - uses: ilammy/setup-nasm@v1 - name: Install bindgen-cli run: cargo install --locked bindgen-cli - name: Remove bindings @@ -291,6 +289,39 @@ jobs: - name: Run cargo test run: cargo test --tests -p aws-lc-rs --no-default-features --features aws-lc-sys + build-env-external-bindgen-windows-test: + if: github.repository_owner == 'aws' + name: aws-lc-rs - External bindgen test (${{ matrix.target }}) + runs-on: windows-latest + env: + AWS_LC_SYS_EXTERNAL_BINDGEN: 1 + strategy: + fail-fast: false + matrix: + target: [ 'i686-pc-windows-gnu', 'i686-pc-windows-msvc', 'x86_64-pc-windows-msvc', 'x86_64-pc-windows-gnu' ] + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - uses: dtolnay/rust-toolchain@stable + with: + target: ${{ matrix.target }} + - uses: ilammy/setup-nasm@v1 + - name: Install bindgen-cli + run: cargo install --locked bindgen-cli + - name: Remove bindings + run: | + rm ./aws-lc-sys/src/x86_64* + rm ./aws-lc-sys/src/aarch64* + rm ./aws-lc-sys/src/i686* + - if: ${{ matrix.target == 'i686-pc-windows-gnu' }} + name: Install mingw + uses: bwoodsend/setup-winlibs-action@v1 + with: + architecture: i686 + - name: Run cargo test + run: cargo test --tests -p aws-lc-rs --no-default-features --features aws-lc-sys --target ${{ matrix.target }} + build-env-fips-static-test: if: github.repository_owner == 'aws' name: aws-lc-rs build-env-fips-static-test