File tree Expand file tree Collapse file tree 2 files changed +32
-14
lines changed
.github/actions/ios-dev-app Expand file tree Collapse file tree 2 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,31 @@ description: Create IOS Development App
44runs :
55 using : composite
66 steps :
7+ - name : Cache iOS development build
8+ id : ios-dev-cache
9+ uses : actions/cache@v4
10+ with :
11+ path : |
12+ example/ios/build/DerivedData
13+ key : ios-dev-${{ runner.os }}-${{ hashFiles('example/ios/**', 'example/package.json', 'package.json') }}
14+ restore-keys : |
15+ ios-dev-${{ runner.os }}-
16+
17+ - name : Check for cached build
18+ shell : bash
19+ run : |
20+ if [ "${{ steps.ios-dev-cache.outputs.cache-hit }}" == "true" ]; then
21+ echo "✅ Cache hit! Using cached build."
22+
23+ # Verify cached build exists
24+ if [ -d "example/ios/build/DerivedData/Build/Products/Release-iphonesimulator" ]; then
25+ echo "Cached build directory exists, exiting early."
26+ exit 0
27+ else
28+ echo "⚠️ Cache hit but no build found, continuing with build..."
29+ fi
30+ fi
31+
732 - name : Build package
833 shell : bash
934 run : yarn build
1641 shell : bash
1742 run : gem install xcpretty
1843
19- - name : Cache iOS development build
20- id : ios-dev-cache
21- uses : actions/cache@v4
22- with :
23- path : |
24- example/ios/build
25- example/ios/DerivedData
26- key : ios-dev-${{ runner.os }}-${{ hashFiles('example/ios/**', 'example/package.json', 'package.json') }}
27- restore-keys : |
28- ios-dev-${{ runner.os }}-
29-
3044 - name : Build iOS development app
3145 id : build
32- if : steps.ios-dev-cache.outputs.cache-hit != 'true'
3346 working-directory : example
3447 shell : bash
3548 run : |
Original file line number Diff line number Diff line change 11{
22 "name" : " example" ,
33 "plugins" : [" expo-dev-client" ],
4- "android" : { "package" : " com.css.example" },
5- "ios" : { "bundleIdentifier" : " com.css.example" }
4+ "android" : {
5+ "package" : " com.css.example"
6+ },
7+ "ios" : {
8+ "bundleIdentifier" : " com.css.example" ,
9+ "buildFromSource" : false
10+ }
611}
You can’t perform that action at this time.
0 commit comments