Skip to content

test: Workflow to test iOS build #10

test: Workflow to test iOS build

test: Workflow to test iOS build #10

Workflow file for this run

name: iOS Build
on:
push:
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Test build setup
shell: bash
run: |
yarn expo prebuild --platform ios --clean
cd ios
if ! pod install; then
echo "Pod install failed"
exit 1
fi
cd ..
yarn generate-test-data
cd ios
SDK_VERSION=$(xcodebuild -showsdks | grep 'Simulator - iOS' | grep -o 'iphonesimulator[0-9.]*' | head -1)
OS_VERSION=$(echo $SDK_VERSION | grep -o '[0-9.]*')
xcodebuild -workspace pinpadclientmaplibre.xcworkspace \
-scheme pinpadclientmaplibre \
-configuration Debug \
-sdk $SDK_VERSION \
-destination "platform=iOS Simulator,OS=$OS_VERSION,name=iPhone 15" \
build