@@ -28,43 +28,59 @@ jobs:
28
28
yarn
29
29
yarn lint
30
30
31
- test-ios-newarch :
32
- runs-on : macOS-latest
31
+ build-ios :
32
+ runs-on : macos-latest
33
+
33
34
steps :
34
- - uses : actions/checkout@v4
35
-
35
+ # Checkout the code
36
+ - name : Checkout the code
37
+ uses : actions/checkout@v4
38
+
39
+ # Set up Node.js environment
40
+ - name : Set up Node.js
41
+
36
42
with :
37
43
node-version : 18.x
44
+
45
+ # Cache Yarn dependencies to speed up the build
38
46
- name : Get yarn cache directory path
39
47
id : yarn-cache-dir-path
40
48
run : echo "::set-output name=dir::$(yarn cache dir)"
49
+
41
50
- uses : actions/cache@v4
42
51
id : yarn-cache
43
52
with :
44
53
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
45
54
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
46
55
restore-keys : |
47
56
${{ runner.os }}-yarn-
48
- - name : Cache pods
49
- uses : actions/cache@v4
50
- with :
51
- path : |
52
- packages/RNExternalDisplayExample/ios/Pods
53
- packages/RNExternalDisplayExample/ios/build
54
- key : ${{ runner.os }}-pods-newarch-${{ hashFiles('**/packages/RNExternalDisplayExample/Podfile.lock') }}
55
- restore-keys : |
56
- ${{ runner.os }}-pods-newarch-
57
- - name : Install deps
57
+
58
+ # Install dependencies
59
+ - name : Install dependencies
58
60
run : yarn
59
- - name : Build RNExternalDisplayExample
60
- env :
61
- RCT_NEW_ARCH_ENABLED : 1
61
+
62
+ # Prebuild the iOS folder for Expo
63
+ - name : Prebuild iOS with Expo
64
+ working-directory : apps/external-display-example
65
+ run : |
66
+ yarn expo prebuild --platform ios
67
+
68
+ # Install CocoaPods dependencies for iOS
69
+ - name : Install CocoaPods dependencies
70
+ working-directory : apps/external-display-example/ios
62
71
run : |
63
- cd packages/RNExternalDisplayExample/ios
64
- pod repo update
65
72
pod install
66
- cd ..
67
- xcodebuild -workspace ios/RNExternalDisplayExample.xcworkspace -scheme RNExternalDisplayExample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build
73
+
74
+ # Build the iOS app using Xcode (Debug)
75
+ - name : Build iOS App (Debug)
76
+ working-directory : apps/external-display-example/ios
77
+ run : |
78
+ xcodebuild \
79
+ -workspace externaldisplayexample.xcworkspace \
80
+ -scheme externaldisplayexample \
81
+ -configuration Debug \
82
+ -sdk iphonesimulator \
83
+ -derivedDataPath build
68
84
69
85
build-android :
70
86
runs-on : ubuntu-latest
0 commit comments