-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add action workflow for ensuring minimum xcode version support
- Loading branch information
Showing
3 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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
48 changes: 48 additions & 0 deletions
48
.github/workflows/build_minimum_supported_swift_platforms.yml
This file contains 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,48 @@ | ||
name: Build with Minimum Supported Xcode Versions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
actions: write | ||
|
||
jobs: | ||
build-amplify-with-minimum-supported-xcode: | ||
name: Build Amplify Swift for ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os-runner: macos-12 | ||
xcode-version: 14.0.1 | ||
platform: iOS | ||
|
||
- os-runner: macos-12 | ||
xcode-version: 14.0.1 | ||
platform: macOS | ||
|
||
- os-runner: macos-12 | ||
xcode-version: 14.0.1 | ||
platform: tvOS | ||
|
||
- os-runner: macos-12 | ||
xcode-version: 14.0.1 | ||
platform: watchOS | ||
|
||
uses: ./.github/workflows/build_amplify_swift.yml | ||
with: | ||
os-runner: ${{ matrix.os-runner }} | ||
xcode-version: ${{ matrix.xcode-version }} | ||
platform: ${{ matrix.platform }} | ||
|
||
confirm-pass: | ||
runs-on: ubuntu-latest | ||
name: Confirm Passing Build Steps | ||
if: ${{ !cancelled() }} | ||
needs: [ build-amplify-with-minimum-supported-xcode ] | ||
env: | ||
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }} | ||
steps: | ||
- run: exit $EXIT_CODE |