Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Update README.md

Update README.md #59

name: build
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Swift Lint 🧹
run: swiftlint --strict
- name: Test Build 🔨
run: xcodebuild -scheme $SCHEME -destination $DESTINATION | xcpretty
env:
SCHEME: AgoraUIKit_iOS-Package
DESTINATION: 'generic/platform=iOS'
- name: Pod Lint 🔎
run: |
export LIB_VERSION=$(grep 'static let version' Sources/Agora-Video-UIKit/AgoraUIKit.swift | sed -e 's,.*\"\(.*\)\",\1,')
export POD_RTCVRSN=$(grep 'AgoraRtcEngine_iOS' AgoraUIKit_iOS.podspec | sed -e "s,.*~\> \(.*\)\',\1,")
export POD_BRDVRSN=$(grep 'AgoraRtcEngine_iOS' AgoraBroadcastExtensionHelper_iOS.podspec | sed -e "s,.*~\> \(.*\)\',\1,")
if [ "$POD_RTCVRSN" != "$POD_BRDVRSN" ]; then
exit 1
fi
pod lib lint AgoraUIKit_iOS.podspec --allow-warnings --skip-import-validation --include-podspecs='AgoraRtmControl_iOS.podspec';
pod lib lint AgoraBroadcastExtensionHelper_iOS.podspec --allow-warnings --skip-import-validation --include-podspecs='AgoraAppGroupDataHelper_iOS.podspec';
- name: Print Version 🔤
run: |
export LIB_VERSION=$(grep 'static let version' Sources/Agora-Video-UIKit/AgoraUIKit.swift | sed -e 's,.*\"\(.*\)\",\1,')
echo '### Build passed :rocket:' >> $GITHUB_STEP_SUMMARY
echo "Version: $LIB_VERSION" >> $GITHUB_STEP_SUMMARY