Skip to content

fix: fix pod lib lint error (#21) #65

fix: fix pod lib lint error (#21)

fix: fix pod lib lint error (#21) #65

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: "14.3"
- destination: "\"platform=iOS Simulator,name=iPhone 14\""
name: "iOS"
xcode: "14.3"
- destination: "generic/platform=tvOS"
name: "tvOS"
xcode: "14.3"
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 }}