19
19
jobs :
20
20
android-build :
21
21
runs-on : ubuntu-latest
22
+ strategy :
23
+ matrix :
24
+ newArch : [true, false]
25
+ buildType : [Debug, Release]
26
+ name : Build (newArch=${{ matrix.newArch }}, buildType=${{ matrix.buildType }})
22
27
steps :
23
28
- uses : actions/checkout@v4
29
+
24
30
- name : Use Node.js 20.x
25
31
uses : actions/setup-node@v4
26
32
with :
27
33
node-version : 20.x
34
+
28
35
- uses : actions/setup-java@v2
29
36
with :
30
37
distribution : ' temurin'
31
38
java-version : ' 17'
39
+
32
40
- name : Restore yarn workspaces
33
41
id : yarn-cache
34
42
uses : actions/cache@v3
@@ -37,39 +45,14 @@ jobs:
37
45
node_modules
38
46
*/*/node_modules
39
47
key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
48
+
40
49
- name : Install dependencies
41
50
run : yarn install
51
+
42
52
- name : Install example app dependencies
43
53
run : yarn install
44
54
working-directory : example
45
- - name : Build android example app with new arch disabled
46
- run : ./gradlew assembleDebug -PnewArchEnabled=false
47
- working-directory : example/android
48
- android-build-fabric :
49
- runs-on : ubuntu-latest
50
- steps :
51
- - uses : actions/checkout@v4
52
- - name : Use Node.js 20.x
53
- uses : actions/setup-node@v1
54
- with :
55
- node-version : 20.x
56
- - uses : actions/setup-java@v2
57
- with :
58
- distribution : ' temurin'
59
- java-version : ' 17'
60
- - name : Restore yarn workspaces
61
- id : yarn-cache
62
- uses : actions/cache@v3
63
- with :
64
- path : |
65
- node_modules
66
- */*/node_modules
67
- key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
68
- - name : Install dependencies
69
- run : yarn install
70
- - name : Install example app dependencies
71
- run : yarn install
72
- working-directory : example
73
- - name : Build android example app with new arch enabled
74
- run : ./gradlew assembleDebug -PnewArchEnabled=true
55
+
56
+ - name : Build Android example app
57
+ run : ./gradlew assemble${{ matrix.buildType }} -PnewArchEnabled=${{ matrix.newArch }}
75
58
working-directory : example/android
0 commit comments