From f0ad9372e01276741fc51c94bd14952ab83abe92 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 20 Feb 2024 11:02:53 -0800 Subject: [PATCH] CI: Test aarch64-apple-ios in simulator. --- .github/workflows/tests.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 065fa3ef..b70148a6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,12 +87,22 @@ jobs: ios-tests: name: iOS Simulator Test - runs-on: macos-12 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-12, macos-14] + # Only test on stable to reduce macOS CI jobs + toolchain: [stable] + include: + - os: macos-12 + target_arch: x86_64 + - os: macos-14 + target_arch: aarch64 steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable with: - targets: x86_64-apple-ios + targets: ${{ matrix.target_arch }}-apple-ios - name: Install precompiled cargo-dinghy run: | VERSION=0.6.2 @@ -113,7 +123,7 @@ jobs: echo "device=$SIM_ID" >> $GITHUB_ENV - uses: Swatinem/rust-cache@v2 - name: Run tests - run: cargo dinghy -d ${{ env.device }} test + run: cargo dinghy -p auto-ios-${{ matrix.target_arch }}-sim -d ${{ env.device }} test windows-tests: name: Windows Test