Skip to content

Support for macOS/tvOS #61

Support for macOS/tvOS

Support for macOS/tvOS #61

Workflow file for this run

name: AliyunpanSDK CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.name }}
runs-on: macos-13
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "\"platform=macOS\""
name: "macOS"
xcode: "15.0"
- destination: "\"platform=iOS Simulator,name=iPhone 14\""
name: "iOS"
xcode: "15.0"
- destination: "generic/platform=tvOS"
name: "tvOS"
xcode: "15.0"
skipTest: true
steps:
- uses: actions/checkout@v4
- name: Install xcpretty
run: gem install xcpretty
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app
shell: bash
- name: Get xcodebuild build command
uses: haya14busa/action-cond@v1
id: getBuildCommand
with:
cond: ${{ matrix.skipTest == true }}
if_true: 'build'
if_false: 'build-for-testing'
- name: Build ${{ matrix.name }}
run: set -o pipefail && xcodebuild clean ${{ steps.getBuildCommand.outputs.value }} -project AliyunpanSDK.xcodeproj -scheme AliyunpanSDK -destination ${{ matrix.destination }} | xcpretty
- name: Test ${{ matrix.name }}
run: set -o pipefail && xcodebuild test-without-building -project AliyunpanSDK.xcodeproj -scheme AliyunpanSDK -destination ${{ matrix.destination }} | xcpretty
if: ${{ !matrix.skipTest }}