Skip to content

Commit baa492f

Browse files
authored
ci: use xcode 16 for wda-package.yml (#1027)
* ci: use xcode 16 * remove Testing.framework also * Update build-real.sh * simplify the building package task in pubslish.js.yml
1 parent 4f78855 commit baa492f

3 files changed

Lines changed: 31 additions & 40 deletions

File tree

.github/workflows/publish.js.yml

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: macos-14
13+
runs-on: macos-15
1414

1515
env:
16-
XCODE_VERSION: 15.3
17-
ZIP_PKG_NAME_IOS: "WebDriverAgentRunner-Runner.zip"
18-
PKG_PATH_IOS: "appium_wda_ios"
19-
ZIP_PKG_NAME_TVOS: "WebDriverAgentRunner_tvOS-Runner.zip"
20-
PKG_PATH_TVOS: "appium_wda_tvos"
16+
XCODE_VERSION: 16.3
2117

2218
steps:
2319
- uses: actions/checkout@v2
@@ -36,36 +32,22 @@ jobs:
3632
name: Run test
3733

3834
# building WDA packages
39-
- name: Build iOS
40-
run: |
41-
xcodebuild clean build-for-testing \
42-
-project WebDriverAgent.xcodeproj \
43-
-derivedDataPath $PKG_PATH_IOS \
44-
-scheme WebDriverAgentRunner \
45-
-destination generic/platform=iOS \
46-
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
47-
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS after removing test frameworks
48-
run: |
49-
pushd appium_wda_ios/Build/Products/Debug-iphoneos
50-
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XC*.framework
51-
zip -r $ZIP_PKG_NAME_IOS WebDriverAgentRunner-Runner.app
52-
popd
53-
mv $PKG_PATH_IOS/Build/Products/Debug-iphoneos/$ZIP_PKG_NAME_IOS ./
54-
- name: Build tvOS
55-
run: |
56-
xcodebuild clean build-for-testing \
57-
-project WebDriverAgent.xcodeproj \
58-
-derivedDataPath $PKG_PATH_TVOS \
59-
-scheme WebDriverAgentRunner_tvOS \
60-
-destination generic/platform=tvOS \
61-
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
62-
- name: Creating a zip of WebDriverAgentRunner-Runner.app for tvOS after removing test frameworks
63-
run: |
64-
pushd appium_wda_tvos/Build/Products/Debug-appletvos
65-
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XC*.framework
66-
zip -r $ZIP_PKG_NAME_TVOS WebDriverAgentRunner_tvOS-Runner.app
67-
popd
68-
mv $PKG_PATH_TVOS/Build/Products/Debug-appletvos/$ZIP_PKG_NAME_TVOS ./
35+
- name: Building iOS
36+
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh
37+
env:
38+
DERIVED_DATA_PATH: appium_wda_ios
39+
SCHEME: WebDriverAgentRunner
40+
DESTINATION: generic/platform=iOS
41+
WD: appium_wda_ios/Build/Products/Debug-iphoneos
42+
ZIP_PKG_NAME: WebDriverAgentRunner-Runner.zip
43+
- name: Building tvOS
44+
run: sh $GITHUB_WORKSPACE/Scripts/ci/build-real.sh
45+
env:
46+
DERIVED_DATA_PATH: appium_wda_tvos
47+
SCHEME: WebDriverAgentRunner_tvOS
48+
DESTINATION: generic/platform=tvOS
49+
WD: appium_wda_tvos/Build/Products/Debug-appletvos
50+
ZIP_PKG_NAME: WebDriverAgentRunner_tvOS-Runner.zip
6951

7052
# release tasks
7153
- run: npx semantic-release

.github/workflows/wda-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
- completed
99

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

1616
jobs:
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040
- uses: maxim-lobanov/setup-xcode@v1
4141
with:
4242
xcode-version: "${{ env.XCODE_VERSION }}"

Scripts/ci/build-real.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ pushd $WD
1818
# XCUIAutomation.framework, XCUnit.framework
1919
rm -rf $SCHEME-Runner.app/Frameworks/XC*.framework
2020

21+
# Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA
22+
rm -rf $SCHEME-Runner.app/Frameworks/Testing.framework
23+
24+
# This library is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
25+
# Xcode 16 generates a 2.6 MB file size. Xcode 15 was a 1 MB file size.
26+
rm -rf $SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib
27+
28+
29+
2130
zip -r $ZIP_PKG_NAME $SCHEME-Runner.app
2231
popd
2332
mv $WD/$ZIP_PKG_NAME ./

0 commit comments

Comments
 (0)