Skip to content

Commit 4d5f765

Browse files
committed
simplify the building package task in pubslish.js.yml
1 parent 668631b commit 4d5f765

1 file changed

Lines changed: 18 additions & 36 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

0 commit comments

Comments
 (0)