From b836bb3c8536de874738441472660fd1bc8353e1 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Mon, 7 Oct 2024 18:22:53 +0100 Subject: [PATCH] Use macOS 15 to prevent slow SDK installation --- .github/workflows/build-sample.yml | 13 ++----------- .github/workflows/cocoapods-lint.yml | 13 ++----------- .github/workflows/unit-tests.yml | 1 + 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index 5c6dbc3a..a9c85022 100644 --- a/.github/workflows/build-sample.yml +++ b/.github/workflows/build-sample.yml @@ -21,7 +21,7 @@ concurrency: jobs: sample: - runs-on: macos-latest + runs-on: "macos-${{ matrix.macos-version || 'latest' }}" timeout-minutes: 15 strategy: fail-fast: false @@ -32,6 +32,7 @@ jobs: # - platform: tvOS # - platform: watchOS - platform: visionOS + macos-version: "15" steps: - name: Checkout Code uses: actions/checkout@v4 @@ -41,16 +42,6 @@ jobs: with: xcode-version: latest-stable - - name: Install visionOS Platform - if: matrix.platform == 'visionOS' - shell: bash - run: | - # See https://github.com/actions/runner-images/issues/10692#issuecomment-2377521050 - xcodebuild -runFirstLaunch - xcrun simctl list - xcodebuild -downloadPlatform visionOS - xcodebuild -runFirstLaunch - - name: Install Tuist run: | brew tap tuist/tuist diff --git a/.github/workflows/cocoapods-lint.yml b/.github/workflows/cocoapods-lint.yml index e6fc56da..b479c049 100644 --- a/.github/workflows/cocoapods-lint.yml +++ b/.github/workflows/cocoapods-lint.yml @@ -20,7 +20,7 @@ concurrency: jobs: lint: - runs-on: macos-latest + runs-on: "macos-${{ matrix.macos-version || 'latest' }}" timeout-minutes: 15 strategy: fail-fast: false @@ -42,6 +42,7 @@ jobs: # config: "" - platform: visionOS config: "" + macos-version: "15" steps: - name: Checkout Code uses: actions/checkout@v4 @@ -59,16 +60,6 @@ jobs: with: xcode-version: latest-stable - - name: Install visionOS Platform - if: matrix.platform == 'visionOS' - shell: bash - run: | - # See https://github.com/actions/runner-images/issues/10692#issuecomment-2377521050 - xcodebuild -runFirstLaunch - xcrun simctl list - xcodebuild -downloadPlatform visionOS - xcodebuild -runFirstLaunch - - name: Lint Podspec id: lint run: | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f9dc476b..ec9c014a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -48,6 +48,7 @@ jobs: xcode-version: "14.3.1" - platform: visionOS + macos-version: "15" - platform: macOS - platform: macOS