Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix iOS simulator boot failures #303

Merged
merged 4 commits into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ jobs:
toolchain: stable

- name: Build the binaries
run: melos run build:other
run: dart pub global run melos run build:other
shell: bash
- name: Copy the binaries to the needed location
shell: bash
run: |
Expand Down Expand Up @@ -122,7 +123,7 @@ jobs:
run: flutter test -d linux integration_test

ios_integration_test:
runs-on: macos-13 # TODO switch to macos-latest when it doesn't error out
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -131,12 +132,11 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Start iOS Simulator
run: |
DEVICE_ID=$(xcrun xctrace list devices | grep iPhone | head -1 | awk '{print $NF}' | tr -d '()')
echo "DEVICE_ID=$DEVICE_ID" >> $GITHUB_ENV
xcrun simctl boot $DEVICE_ID
- uses: futureware-tech/simulator-action@v3
id: start_simulator
name: Start iOS Simulator
with:
model: 'iPhone 14'

- name: Build the XCFramework
run: melos run build:apple
Expand All @@ -148,7 +148,7 @@ jobs:

- name: Run Flutter integration tests
working-directory: packages/flutter_mimir/example
run: flutter test -d ${{ env.DEVICE_ID }} integration_test
run: flutter test -d ${{ steps.start_simulator.outputs.udid }} integration_test

android_integration_test:
runs-on: macos-latest
Expand Down
Loading