-
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
67 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
49 changes: 49 additions & 0 deletions
49
.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,49 @@ | ||
name: Build with Minimum Supported Xcode Versions | ||
on: | ||
workflow_dispatch: | ||
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 |