Skip to content

一些拼写修正和小修正 (#84) #76

一些拼写修正和小修正 (#84)

一些拼写修正和小修正 (#84) #76

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
- develop
- release
- hotfix/*
pull_request:
branches-ignore:
- demo
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: CocoaPods Cache
uses: actions/cache@v3
with:
path: "Pods"
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Setup Project
run: |
pod --version
isNeedsPodInstall=false
diff "Podfile.lock" "Pods/Manifest.lock" >/dev/null || {
isNeedsPodInstall=true
}
if $isNeedsPodInstall; then
pod install || {
echo "pod install fails, try update repo"
pod install --repo-update
}
else
echo "Podfile unchanged, skip pod install."
fi
- name: Build maccatalyst target
run: |
set -o pipefail
xcodebuild -workspace "App.xcworkspace" -scheme "App" -destination 'platform=macOS,arch=x86_64' | xcpretty
- name: Build iOS target
run: |
set -o pipefail
xcodebuild -workspace "App.xcworkspace" -scheme "App" -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty