Skip to content

Build with minimum Xcode version | Amplify Swift #23

Build with minimum Xcode version | Amplify Swift

Build with minimum Xcode version | Amplify Swift #23

name: Build with Minimum Supported Xcode Versions
on:
workflow_dispatch:
permissions:
contents: read
actions: write
jobs:
build-amplify-with-minimum-supported-xcode:
name: Build Amplify Swift for ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [iOS, macOS, tvOS, watchOS]
uses: ./.github/workflows/build_scheme.yml
with:
os-runner: macos-12
xcode-version: 'minimum'
platform: ${{ matrix.platform }}
cacheable: false
scheme: Amplify
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