Skip to content

Commit 09046f4

Browse files
committed
build expo ios app in GH actions
1 parent 9f28c8e commit 09046f4

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/checkup.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Checkup
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
expo-ios-build:
13+
name: Build Expo ios app
14+
runs-on: macos-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Install Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
flutter-version: '3.24'
23+
24+
- name: Install NodeJS
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
29+
- run: npm install
30+
working-directory: expo-flutter
31+
32+
- name: Build Flutter iOS artifacts
33+
run: npm run flutter:build:ios
34+
working-directory: expo-flutter
35+
36+
- name: Install Cocoapods dependencies
37+
working-directory: expo-flutter/ios
38+
run: pod install
39+
40+
- name: Build Expo iOS app
41+
working-directory: expo-flutter/ios
42+
run: |
43+
xcodebuild archive -workspace ExpoFlutter.xcworkspace \
44+
-scheme ExpoFlutter \
45+
-sdk iphoneos \
46+
-configuration Debug \
47+
-destination generic/platform=iOS \
48+
-archivePath archive/ExpoFlutter.xcarchive \
49+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

0 commit comments

Comments
 (0)