From 1bca6f180f272f263fc62aa125f6325c9b969a68 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Sat, 2 Mar 2024 13:38:13 -0500 Subject: [PATCH 1/4] ci: fix iOS simulator boot failures --- .github/workflows/build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 678d59e..3ee7419 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,7 +122,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 @@ -131,12 +131,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 15' - name: Build the XCFramework run: melos run build:apple @@ -148,7 +147,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 From 3ce410838eec1c5d8a0ac3acaa9a3d0cde7023e5 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Sat, 2 Mar 2024 13:41:45 -0500 Subject: [PATCH 2/4] ci: decrease iPhone simulator version --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ee7419..5b5df83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -135,7 +135,7 @@ jobs: id: start_simulator name: Start iOS Simulator with: - model: 'iPhone 15' + model: 'iPhone 14' - name: Build the XCFramework run: melos run build:apple From fc19cb88005f353bdd422ca6b5944ff37494c1e3 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Mon, 4 Mar 2024 12:31:08 -0500 Subject: [PATCH 3/4] ci: run melos via dart pub global for windows integration test --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b5df83..71016af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,7 +82,7 @@ jobs: toolchain: stable - name: Build the binaries - run: melos run build:other + run: dart pub global run melos run build:other - name: Copy the binaries to the needed location shell: bash run: | From c6c5c107bc981e397e154a33fb6e3dab8415a9ba Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Mon, 4 Mar 2024 12:46:33 -0500 Subject: [PATCH 4/4] ci: fix shell used to execute melos command --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71016af..7d48314 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,6 +83,7 @@ jobs: - name: Build the binaries run: dart pub global run melos run build:other + shell: bash - name: Copy the binaries to the needed location shell: bash run: |