Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 18 additions & 36 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ on:

jobs:
build:
runs-on: macos-14
runs-on: macos-15

env:
XCODE_VERSION: 15.3
ZIP_PKG_NAME_IOS: "WebDriverAgentRunner-Runner.zip"
PKG_PATH_IOS: "appium_wda_ios"
ZIP_PKG_NAME_TVOS: "WebDriverAgentRunner_tvOS-Runner.zip"
PKG_PATH_TVOS: "appium_wda_tvos"
XCODE_VERSION: 16.3

steps:
- uses: actions/checkout@v2
Expand All @@ -36,36 +32,22 @@ jobs:
name: Run test

# building WDA packages
- name: Build iOS
run: |
xcodebuild clean build-for-testing \
-project WebDriverAgent.xcodeproj \
-derivedDataPath $PKG_PATH_IOS \
-scheme WebDriverAgentRunner \
-destination generic/platform=iOS \
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS after removing test frameworks
run: |
pushd appium_wda_ios/Build/Products/Debug-iphoneos
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XC*.framework
zip -r $ZIP_PKG_NAME_IOS WebDriverAgentRunner-Runner.app
popd
mv $PKG_PATH_IOS/Build/Products/Debug-iphoneos/$ZIP_PKG_NAME_IOS ./
- name: Build tvOS
run: |
xcodebuild clean build-for-testing \
-project WebDriverAgent.xcodeproj \
-derivedDataPath $PKG_PATH_TVOS \
-scheme WebDriverAgentRunner_tvOS \
-destination generic/platform=tvOS \
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
- name: Creating a zip of WebDriverAgentRunner-Runner.app for tvOS after removing test frameworks
run: |
pushd appium_wda_tvos/Build/Products/Debug-appletvos
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XC*.framework
zip -r $ZIP_PKG_NAME_TVOS WebDriverAgentRunner_tvOS-Runner.app
popd
mv $PKG_PATH_TVOS/Build/Products/Debug-appletvos/$ZIP_PKG_NAME_TVOS ./
- name: Building iOS
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh
env:
DERIVED_DATA_PATH: appium_wda_ios
SCHEME: WebDriverAgentRunner
DESTINATION: generic/platform=iOS
WD: appium_wda_ios/Build/Products/Debug-iphoneos
ZIP_PKG_NAME: WebDriverAgentRunner-Runner.zip
- name: Building tvOS
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh
env:
DERIVED_DATA_PATH: appium_wda_tvos
SCHEME: WebDriverAgentRunner_tvOS
DESTINATION: generic/platform=tvOS
WD: appium_wda_tvos/Build/Products/Debug-appletvos
ZIP_PKG_NAME: WebDriverAgentRunner_tvOS-Runner.zip

# release tasks
- run: npx semantic-release
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
- completed

env:
HOST: macos-14
XCODE_VERSION: 15.3
DESTINATION_SIM: platform=iOS Simulator,name=iPhone 15 Pro
HOST: macos-15
XCODE_VERSION: 16.3
DESTINATION_SIM: platform=iOS Simulator,name=iPhone 16 Plus
DESTINATION_SIM_tvOS: platform=tvOS Simulator,name=Apple TV 4K (3rd generation)

jobs:
Expand All @@ -36,7 +36,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "${{ env.XCODE_VERSION }}"
Expand Down
9 changes: 9 additions & 0 deletions Scripts/ci/build-real.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ pushd $WD
# XCUIAutomation.framework, XCUnit.framework
rm -rf $SCHEME-Runner.app/Frameworks/XC*.framework

# Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA
rm -rf $SCHEME-Runner.app/Frameworks/Testing.framework

# This library is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
# Xcode 16 generates a 2.6 MB file size. Xcode 15 was a 1 MB file size.
rm -rf $SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib



zip -r $ZIP_PKG_NAME $SCHEME-Runner.app
popd
mv $WD/$ZIP_PKG_NAME ./