From ce9ef81f4b03fb61ba85621852a3cdbab54b372e Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Thu, 30 May 2024 10:29:39 -0400 Subject: [PATCH] Add cargo xwin builds to CI --- .github/workflows/cross.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index f2179734711..8e482257aee 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -113,6 +113,29 @@ jobs: run: cargo build -p aws-lc-rs --release --target x86_64-apple-ios --features bindgen + cargo-xwin: + if: github.repository_owner == 'aws' + runs-on: ubuntu-latest + steps: + - uses: ilammy/setup-nasm@v1 + - uses: actions/checkout@v3 + with: + submodules: 'recursive' + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + target: x86_64-pc-windows-msvc + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + target: aarch64-pc-windows-msvc + - name: Install cargo-xwin and bindgen-cli + run: cargo install cargo-xwin bindgen-cli + - name: cargo xwin build for `x86_64-pc-windows-msvc` + run: cargo xwin build -p aws-lc-rs --release --target x86_64-pc-windows-msvc + - name: cargo xwin build for `aarch64-pc-windows-msvc` + run: cargo xwin build -p aws-lc-rs --release --target aarch64-pc-windows-msvc + aws-lc-rs-windows-mingw: if: github.repository_owner == 'aws' name: x86_64-pc-windows-gnu