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
37 changes: 25 additions & 12 deletions .github/actions/ios-dev-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ description: Create IOS Development App
runs:
using: composite
steps:
- name: Cache iOS development build
id: ios-dev-cache
uses: actions/cache@v4
with:
path: |
example/ios/build/DerivedData
key: ios-dev-${{ runner.os }}-${{ hashFiles('example/ios/**', 'example/package.json', 'package.json') }}
restore-keys: |
ios-dev-${{ runner.os }}-

- name: Check for cached build
shell: bash
run: |
if [ "${{ steps.ios-dev-cache.outputs.cache-hit }}" == "true" ]; then
echo "✅ Cache hit! Using cached build."

# Verify cached build exists
if [ -d "example/ios/build/DerivedData/Build/Products/Release-iphonesimulator" ]; then
echo "Cached build directory exists, exiting early."
exit 0
else
echo "⚠️ Cache hit but no build found, continuing with build..."
fi
fi

- name: Build package
shell: bash
run: yarn build
Expand All @@ -16,20 +41,8 @@ runs:
shell: bash
run: gem install xcpretty

- name: Cache iOS development build
id: ios-dev-cache
uses: actions/cache@v4
with:
path: |
example/ios/build
example/ios/DerivedData
key: ios-dev-${{ runner.os }}-${{ hashFiles('example/ios/**', 'example/package.json', 'package.json') }}
restore-keys: |
ios-dev-${{ runner.os }}-

- name: Build iOS development app
id: build
if: steps.ios-dev-cache.outputs.cache-hit != 'true'
working-directory: example
shell: bash
run: |
Expand Down
9 changes: 7 additions & 2 deletions example/app.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "example",
"plugins": ["expo-dev-client"],
"android": { "package": "com.css.example" },
"ios": { "bundleIdentifier": "com.css.example" }
"android": {
"package": "com.css.example"
},
"ios": {
"bundleIdentifier": "com.css.example",
"buildFromSource": false
}
}