From 00ca0b03976877edad04e1868662d6f07943b879 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Mon, 7 Oct 2024 19:04:08 +0100 Subject: [PATCH] Fix missing visionOS platform on CI (#576) --- .github/workflows/build-sample.yml | 3 ++- .github/workflows/cocoapods-lint.yml | 3 ++- .github/workflows/release.yml | 9 +++++++++ .github/workflows/unit-tests.yml | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index 120c7187..afddaa72 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 diff --git a/.github/workflows/cocoapods-lint.yml b/.github/workflows/cocoapods-lint.yml index eba1ba24..fd0eb68c 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c41d88c3..2f5377fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,15 @@ jobs: with: xcode-version: latest-stable + - name: Install visionOS Platform + 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: Update version in podspec run: sed -i '' 's/s.version = "[^"]*"/s.version = "${{ github.event.inputs.version }}"/' KSCrash.podspec 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