fix: fix pod lib lint error (#21) #65
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: 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 }} |