diff --git a/.github/file-filters.yml b/.github/file-filters.yml index 8632331b16..b6e4483ea2 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -28,6 +28,7 @@ run_unit_tests_for_prs: &run_unit_tests_for_prs # GH Actions - ".github/workflows/test.yml" + - ".github/workflows/unit-test-common.yml" - ".github/file-filters.yml" # Scripts diff --git a/.github/workflows/ui-tests-common.yml b/.github/workflows/ui-tests-common.yml index 3a2d30a4fc..024a01996e 100644 --- a/.github/workflows/ui-tests-common.yml +++ b/.github/workflows/ui-tests-common.yml @@ -77,7 +77,8 @@ on: jobs: common-ui-tests: - if: ${{ !inputs.should_skip }} + # test in cirrus labs + # if: ${{ !inputs.should_skip }} name: UI Tests Common runs-on: ${{ inputs.run_on_cirrus_labs && fromJSON(format('["ghcr.io/cirruslabs/macos-runner:{0}", "runner_group_id:10"]', inputs.macos_version)) || inputs.macos_version }} timeout-minutes: 40 @@ -109,6 +110,18 @@ jobs: OS_VERSION: ${{ inputs.test-destination-os }} run: ./scripts/ci-install-platforms.sh --platforms "$PLATFORM" --os-version "$OS_VERSION" + - name: Install Rosetta + run: | + xcrun simctl list runtimes -v + + - name: Ensure simctl dyld shared cache is updated + # Xcode 15.x doesn't support this command, so we skip it for that version. + if: ${{ !contains(inputs.xcode_version, '15.') }} + run: | + xcrun simctl runtime dyld_shared_cache update --all + xcrun simctl list runtimes -v + xcrun simctl list devices + - name: Create simulator device if: ${{ inputs.create_device }} env: diff --git a/.github/workflows/unit-test-common.yml b/.github/workflows/unit-test-common.yml index ff22b4be21..11d6c1a530 100644 --- a/.github/workflows/unit-test-common.yml +++ b/.github/workflows/unit-test-common.yml @@ -83,6 +83,19 @@ jobs: if: ${{ inputs.install_platforms }} run: ./scripts/ci-install-platforms.sh --platforms "${{ inputs.platform }}" --os-version "${{ inputs.test-destination-os }}" + - name: Install Rosetta + run: | + xcrun simctl list runtimes -v + softwareupdate --install-rosetta --agree-to-license + + - name: Ensure simctl dyld shared cache is updated + # Xcode 15.x doesn't support this command, so we skip it for that version. + if: ${{ !contains(inputs.xcode, '15.') }} + run: | + xcrun simctl runtime dyld_shared_cache update --all + xcrun simctl list runtimes -v + xcrun simctl list devices + # Create simulator devices for non-preinstalled simulators # Required for iOS 16.4, iOS 17.5 (on Xcode 15.4), and iOS/tvOS 26.1 - name: Create simulator device