ci: make dependency resolution resilient and add an advisory Xcode preview build #1117
Workflow file for this run
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
| name: Build with minimum Xcode version | 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-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: | |
| scheme: Amplify-Build | |
| os-runner: 'macos-15' | |
| xcode-version: 'minimum' | |
| platform: ${{ matrix.platform }} | |
| save_build_cache: false | |
| 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 |