From bda10925af0dd648cd29a535ce14fd21d41c4e46 Mon Sep 17 00:00:00 2001 From: Worthing ~ <115107835+w-goog@users.noreply.github.com> Date: Tue, 20 Oct 2026 15:34:18 -0700 Subject: [PATCH] g-orchestrated: warm up simulator runtimes before iOS simulator CI jobs --- .github/workflows/builds.yml | 2 ++ .github/workflows/unit_tests.yml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index c2cf7d3d..7a248f8b 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -55,6 +55,8 @@ jobs: # `resolve --version` can only re-pin an already-resolved dependency. swift package resolve swift package resolve app-check --version "$version" + - name: Warm up simulator runtimes + run: xcrun simctl list devices available - name: Build unit test target run: | xcodebuild \ diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 854a9c11..5d26588d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -63,6 +63,12 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Select Xcode run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer + # Registers the simulator runtimes before xcodebuild asks for a destination; + # without it the job intermittently fails with "Unable to find a device + # matching the provided destination specifier" on the macos-15 image. + # https://github.com/actions/runner-images/issues/12948 + - name: Warm up simulator runtimes + run: xcrun simctl list devices available - name: Build unit test target run: | xcodebuild \ @@ -132,6 +138,8 @@ jobs: destination: '"platform=iOS Simulator,name=iPhone 17,OS=27.0"' steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Warm up simulator runtimes + run: xcrun simctl list devices available - name: Build unit test target run: | xcodebuild \