-
Notifications
You must be signed in to change notification settings - Fork 222
chore: updating Github action workflows #4036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
.github/composite_actions/install_simulators_if_needed/action.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: 'Install Simulators if Needed' | ||
description: 'Downloads and installs simulator runtimes for Xcode 16.0' | ||
|
||
inputs: | ||
xcode_version: | ||
description: 'The Xcode version being used' | ||
required: true | ||
type: string | ||
platform: | ||
description: 'The platform to install simulators for' | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Simulators for Xcode 16.0 | ||
shell: bash | ||
run: | | ||
XCODE_VERSION="${{ inputs.xcode_version }}" | ||
PLATFORM="${{ inputs.platform }}" | ||
|
||
# Only run for Xcode 16.0.0 | ||
if [[ "$XCODE_VERSION" != "16.0.0" ]]; then | ||
echo "Not Xcode 16.0.0 (current: $XCODE_VERSION), skipping simulator installation" | ||
exit 0 | ||
fi | ||
|
||
# Skip for macOS as it doesn't need simulators | ||
if [[ "$PLATFORM" == "macOS" ]]; then | ||
echo "macOS doesn't need simulator downloads" | ||
exit 0 | ||
fi | ||
|
||
echo "Installing simulators for $PLATFORM with Xcode 16.0.0..." | ||
|
||
# Show what's available before download | ||
echo "Simulators before download:" | ||
xcrun simctl list runtimes || true | ||
|
||
# Download the platform - this will get the appropriate version for Xcode 16.0 | ||
echo "Downloading $PLATFORM platform for Xcode 16.0..." | ||
case $PLATFORM in | ||
iOS) | ||
sudo xcodebuild -downloadPlatform iOS || echo "Failed to download iOS platform" | ||
;; | ||
tvOS) | ||
sudo xcodebuild -downloadPlatform tvOS || echo "Failed to download tvOS platform" | ||
;; | ||
watchOS) | ||
sudo xcodebuild -downloadPlatform watchOS || echo "Failed to download watchOS platform" | ||
;; | ||
visionOS) | ||
sudo xcodebuild -downloadPlatform visionOS || echo "Failed to download visionOS platform" | ||
;; | ||
esac | ||
|
||
# Show what's available after download | ||
echo "Simulators after download:" | ||
xcrun simctl list runtimes || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build with Xcode Beta | Amplify Swift | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
actions: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref_name != 'main' }} | ||
|
||
jobs: | ||
build-amplify-with-xcode-beta: | ||
name: Build Amplify Swift for ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macOS] | ||
|
||
uses: ./.github/workflows/build_scheme.yml | ||
with: | ||
scheme: Amplify-Build | ||
os-runner: 'macos-15' | ||
xcode-version: 'beta' | ||
platform: ${{ matrix.platform }} | ||
save_build_cache: false | ||
|
||
confirm-pass: | ||
runs-on: ubuntu-latest | ||
name: Confirm Passing Build Steps | ||
if: ${{ !cancelled() }} | ||
needs: [build-amplify-with-xcode-beta] | ||
env: | ||
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }} | ||
steps: | ||
- run: exit $EXIT_CODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why only macOS?