From e479a3a87cbee8499729e72b468e50c5b0bf8daf Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:46:29 +0200 Subject: [PATCH] fix(swift5): workaround: use xcode 14.2 to deploy on cocoapods --- .../swift5/statics/client/.github/workflows/build.yml | 4 ++-- .../swift5/statics/client/.github/workflows/release.yml | 8 ++++++-- .../swift5/statics/uploader/.github/workflows/build.yml | 4 ++-- .../swift5/statics/uploader/.github/workflows/release.yml | 8 ++++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/templates/swift5/statics/client/.github/workflows/build.yml b/templates/swift5/statics/client/.github/workflows/build.yml index a4e50402..bdda1dde 100644 --- a/templates/swift5/statics/client/.github/workflows/build.yml +++ b/templates/swift5/statics/client/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: cocoapods: name: Verify cocopods podspec needs: [ build-xcodebuild ] - runs-on: macos-latest + runs-on: macos-13 steps: - name: Checkout @@ -58,6 +58,6 @@ jobs: - name: xcode version uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest-stable + xcode-version: '14.2.0' - name: Verify cocoapods run: pod lib lint --allow-warnings diff --git a/templates/swift5/statics/client/.github/workflows/release.yml b/templates/swift5/statics/client/.github/workflows/release.yml index 83055440..e9717d58 100644 --- a/templates/swift5/statics/client/.github/workflows/release.yml +++ b/templates/swift5/statics/client/.github/workflows/release.yml @@ -4,10 +4,14 @@ on: types: [published] jobs: deploy: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v4 - + - name: xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.2.0' + - name: Install Cocoapods run: gem install cocoapods diff --git a/templates/swift5/statics/uploader/.github/workflows/build.yml b/templates/swift5/statics/uploader/.github/workflows/build.yml index a4e50402..bdda1dde 100644 --- a/templates/swift5/statics/uploader/.github/workflows/build.yml +++ b/templates/swift5/statics/uploader/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: cocoapods: name: Verify cocopods podspec needs: [ build-xcodebuild ] - runs-on: macos-latest + runs-on: macos-13 steps: - name: Checkout @@ -58,6 +58,6 @@ jobs: - name: xcode version uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest-stable + xcode-version: '14.2.0' - name: Verify cocoapods run: pod lib lint --allow-warnings diff --git a/templates/swift5/statics/uploader/.github/workflows/release.yml b/templates/swift5/statics/uploader/.github/workflows/release.yml index 83055440..e9717d58 100644 --- a/templates/swift5/statics/uploader/.github/workflows/release.yml +++ b/templates/swift5/statics/uploader/.github/workflows/release.yml @@ -4,10 +4,14 @@ on: types: [published] jobs: deploy: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v4 - + - name: xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.2.0' + - name: Install Cocoapods run: gem install cocoapods