Skip to content

Commit

Permalink
Add extra step to other actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed Mar 1, 2025
1 parent d0932ba commit 40ac158
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
with:
xcode-version: latest-stable

- name: Ensure the Platform is Downloaded
if: ${{ matrix.platform != 'macOS' }}
run: |
xcodebuild -runFirstLaunch
xcrun simctl list
xcodebuild -downloadPlatform ${{ matrix.platform }}
xcodebuild -runFirstLaunch
- name: Install Tuist
run: |
brew tap tuist/tuist
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ jobs:
with:
xcode-version: latest-stable

- name: Ensure the Platform is Downloaded
if: ${{ matrix.platform != 'macOS' }}
run: |
xcodebuild -runFirstLaunch
xcrun simctl list
xcodebuild -downloadPlatform ${{ matrix.platform }}
xcodebuild -runFirstLaunch
- name: Lint Podspec
id: lint
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ jobs:
with:
xcode-version: latest-stable

- name: Ensure the Platform is Downloaded
if: ${{ matrix.platform != 'macOS' }}
run: |
xcodebuild -runFirstLaunch
xcrun simctl list
xcodebuild -downloadPlatform ${{ matrix.platform }}
xcodebuild -runFirstLaunch
- name: Install Tuist
run: |
brew tap tuist/tuist
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ jobs:
with:
xcode-version: latest-stable

- name: Install visionOS Platform
shell: bash
- name: Ensure Platforms are Downloaded
run: |
# See https://github.com/actions/runner-images/issues/10692#issuecomment-2377521050
xcodebuild -runFirstLaunch
xcrun simctl list
xcodebuild -downloadPlatform visionOS
xcodebuild -runFirstLaunch
for platform in iOS watchOS tvOS visionOS; do
echo "Downloading $platform platform..."
xcodebuild -downloadPlatform $platform
xcodebuild -runFirstLaunch
done
- name: Update version in podspec
run: sed -i '' 's/s.version = "[^"]*"/s.version = "${{ github.event.inputs.version }}"/' KSCrash.podspec
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
with:
xcode-version: ${{ matrix.xcode-version || 'latest-stable' }}

- name: Ensure the platform is downloaded
- name: Ensure the Platform is Downloaded
if: ${{ matrix.platform != 'macOS' && matrix.platform != 'mac-catalyst' }}
run: |
xcodebuild -runFirstLaunch
Expand Down

0 comments on commit 40ac158

Please sign in to comment.