File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,21 +111,9 @@ jobs:
111111 URL="https://github.com/sonos/dinghy/releases/download/${VERSION}/cargo-dinghy-macos-${VERSION}.tgz"
112112 wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin
113113 cargo dinghy --version
114- - name : Setup Simulator
115- # Use the first installed iOS runtime and the first (i.e. oldest) supported iPhone device.
116- run : |
117- RUNTIME=$(xcrun simctl list runtimes --json | jq '.runtimes | map(select(.name | contains("iOS"))) | .[0]')
118- RUNTIME_ID=$(echo $RUNTIME | jq -r '.identifier')
119- echo "Using runtime:" $RUNTIME_ID
120- DEVICE_ID=$(echo $RUNTIME | jq -r '.supportedDeviceTypes | map(select(.productFamily == "iPhone")) | .[0].identifier')
121- echo "Using device:" $DEVICE_ID
122- SIM_ID=$(xcrun simctl create Test-iPhone $DEVICE_ID $RUNTIME_ID)
123- echo "Created simulator:" $SIM_ID
124- xcrun simctl boot $SIM_ID
125- echo "device=$SIM_ID" >> $GITHUB_ENV
126114 - uses : Swatinem/rust-cache@v2
127115 - name : Run tests
128- run : cargo dinghy -p ${{ matrix.ios_platform }} -d ${{ env.device }} test
116+ run : cargo dinghy -p ${{ matrix.ios_platform }} test
129117
130118 windows-tests :
131119 name : Windows Test
You can’t perform that action at this time.
0 commit comments