From 8af7d611f4b0fd1169abeff360639b2c64434f50 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 2 Oct 2023 10:26:50 -0700 Subject: [PATCH] Add aarch64-pc-windows-msvc to CI (build only). Build webpki on aarch64-pc-windows-msvc. Don't run it since there are no aarch64-pc-windows-msvc runners available. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6aae98d..47667ce5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,6 +146,7 @@ jobs: # platforms mostly to smoketest that the build machinery in mk/ is # portable. - arm-unknown-linux-gnueabihf + - aarch64-pc-windows-msvc - i686-pc-windows-msvc - x86_64-unknown-linux-musl - x86_64-unknown-linux-gnu @@ -170,6 +171,11 @@ jobs: rust_channel: 1.46.0 include: + - target: aarch64-pc-windows-msvc + host_os: windows-latest + # GitHub Actions doesn't have a way to run this target yet. + cargo_options: --no-run + - target: arm-unknown-linux-gnueabihf host_os: ubuntu-22.04 @@ -202,6 +208,12 @@ jobs: - if: ${{ matrix.target == 'aarch64-apple-darwin' }} run: echo "DEVELOPER_DIR=/Applications/Xcode_12.2.app/Contents/Developer" >> $GITHUB_ENV + - if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }} + run: | + echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH + echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV + shell: bash + - if: ${{ !contains(matrix.host_os, 'windows') }} run: | mk/cargo.sh test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}