Skip to content

Commit

Permalink
Use cargo install for aarch64-apple-darwin cargo-dinghy
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Feb 20, 2024
1 parent 30edfa9 commit 69997fd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 69997fd

Please sign in to comment.