Add support tvOS, watchOS, visionOS. #58
Workflow file for this run
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
name: Build and test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_and_test: | |
name: ${{ matrix.command }} on ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }}) | |
runs-on: ${{ matrix.macos }} | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode: ['15.0.1'] | |
macos: ['macos-13'] | |
scheme: ['CachedAsyncImage'] | |
command: ['test'] | |
platform: ['iOS', 'macOS', 'tvOS', 'watchOS'] | |
steps: | |
- name: Switch xcode to ${{ matrix.xcode }} | |
uses: maxim-lobanov/setup-xcode@v1.6.0 | |
with: | |
xcode-version: ${{ matrix.xcode }} | |
- name: Double-check macOS version (${{ matrix.macos }}) | |
run: sw_vers | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Check xcodebuild version | |
run: xcodebuild -version | |
- name: Check xcode embedded SDKs | |
run: xcodebuild -showsdks | |
- name: Show buildable schemes | |
run: xcodebuild -list | |
- name: Show eligible build destinations for ${{ matrix.scheme }} | |
run: xcodebuild -showdestinations -scheme ${{ matrix.scheme }} | |
- uses: mxcl/xcodebuild@v2.0.0 | |
with: | |
platform: ${{ matrix.platform }} | |
scheme: ${{ matrix.scheme }} | |
action: ${{ matrix.command }} | |
code-coverage: true | |
verbosity: xcpretty | |
upload-logs: always |