Skip to content

Commit

Permalink
CI: Add aarch64-pc-windows-msvc (build only).
Browse files Browse the repository at this point in the history
There are no runners in GitHub Actions so we can't run the tests, but at least
we can build them.
  • Loading branch information
briansmith committed Oct 8, 2023
1 parent e7873ff commit b612118
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ jobs:
# There is no platform-specific code in webpki. Choose a handful of
# platforms mostly to smoketest that the build machinery in mk/ is
# portable.
# Specifically choose `aarch64-pc-windows-msvc` since it was new in
# *ring* 0.17.
- aarch64-pc-windows-msvc
- arm-unknown-linux-gnueabihf
- i686-pc-windows-msvc
- x86_64-unknown-linux-musl
Expand All @@ -168,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

Expand Down Expand Up @@ -200,6 +208,11 @@ 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\2022\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH
shell: bash

- if: ${{ !contains(matrix.host_os, 'windows') }}
run: |
mk/cargo.sh test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
Expand Down

0 comments on commit b612118

Please sign in to comment.