From 69997fd62a585e6f320feebd883bc146b4b07edf Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 20 Feb 2024 12:07:31 -0800 Subject: [PATCH] Use cargo install for aarch64-apple-darwin cargo-dinghy --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 18c8275e..9bbde669 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,12 +105,20 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} + # There is no precompiled cargo-dinghy for Aarch64 - name: Install precompiled cargo-dinghy + if: ${{ matrix.target == 'x86_64-apple-ios' }} run: | VERSION=0.6.2 URL="https://github.com/sonos/dinghy/releases/download/${VERSION}/cargo-dinghy-macos-${VERSION}.tgz" wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin - cargo dinghy --version + - name: cargo install cargo-dinghy + if: ${{ matrix.target == 'aarch64-apple-ios-sim' }} + run: | + VERSION=0.6.2 + cargo install cargo-dinghy --version ${VERSION} + - name: Check cargo-dinghy version. + run: cargo dinghy --version - name: Setup Simulator # Use the first installed iOS runtime and the first (i.e. oldest) supported iPhone device. run: |