-
-
Notifications
You must be signed in to change notification settings - Fork 27
68 lines (60 loc) · 1.7 KB
/
integration-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
on:
push:
branches:
- main
paths:
- "packages/react-native/android/**"
pull_request:
paths:
- "packages/react-native/android/**"
name: Android Integration
jobs:
ktlint:
runs-on: ubuntu-latest
name: Kotlin Lint
steps:
- uses: actions/checkout@v4
- uses: touchlab-lab/ktlint-action-setup@1.0.0
with:
ktlint_version: 1.3.1
- run: ktlint "packages/react-native/android/src/**/*.kt"
build-new-arch:
runs-on: ubuntu-latest
name: Build Android (New Architecture)
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install
- name: Library Build
run: pnpm build
- name: Build Android
run: cd examples/v0.76.1-new-arch/android && ./gradlew assembleDebug --build-cache && cd ../..
build-old-arch:
runs-on: ubuntu-latest
name: Build Android (Old Architecture)
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install
- name: Library Build
run: pnpm build
- name: Build Android
run: cd examples/v0.71.19/android && ./gradlew assembleDebug --build-cache && cd ../..