Skip to content

Commit e64060e

Browse files
ci: build native apps
1 parent 3b4933f commit e64060e

1 file changed

Lines changed: 43 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,52 @@ on:
1010

1111
jobs:
1212
build:
13-
name: Build and Test
13+
name: Build Web
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 30
1616
steps:
17-
- uses: actions/setup-node@v4
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-node@v6
1819
with:
19-
node-version: 20
20-
- uses: actions/checkout@v4
21-
- name: Restore Dependency Cache
22-
uses: actions/cache@v4
20+
node-version: 22
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run build
24+
25+
build-android:
26+
needs: ['build']
27+
runs-on: 'macos-26'
28+
timeout-minutes: 30
29+
steps:
30+
- uses: actions/checkout@v5
31+
- uses: actions/setup-node@v6
32+
with:
33+
node-version: 22
34+
cache: 'npm'
35+
- run: npm ci
36+
- run: npm run build
37+
- name: Sync native platforms
38+
run: npx cap sync
39+
- name: Build Android
40+
working-directory: ./android
41+
run: ./gradlew clean assembleDebug
42+
43+
build-ios:
44+
needs: ['build']
45+
runs-on: 'macos-15'
46+
timeout-minutes: 30
47+
steps:
48+
- uses: actions/checkout@v5
49+
- uses: actions/setup-node@v6
2350
with:
24-
path: ~/.npm
25-
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
26-
- run: npm install
51+
node-version: 22
52+
cache: 'npm'
53+
- name: Set Xcode 26.0
54+
run: sudo xcode-select --switch /Applications/Xcode_26.0.app
55+
- run: npm ci
2756
- run: npm run build
57+
- name: Sync native platforms
58+
run: npx cap sync
59+
- name: Build iOS
60+
working-directory: ./ios/App
61+
run: xcodebuild clean build -workspace App.xcworkspace -scheme App CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

0 commit comments

Comments
 (0)