Skip to content

Commit a76eb33

Browse files
Update android.yml
1 parent 1e95e14 commit a76eb33

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

.github/workflows/android.yml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ on:
1919
jobs:
2020
android-build:
2121
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 }})
2227
steps:
2328
- uses: actions/checkout@v4
29+
2430
- name: Use Node.js 20.x
2531
uses: actions/setup-node@v4
2632
with:
2733
node-version: 20.x
34+
2835
- uses: actions/setup-java@v2
2936
with:
3037
distribution: 'temurin'
3138
java-version: '17'
39+
3240
- name: Restore yarn workspaces
3341
id: yarn-cache
3442
uses: actions/cache@v3
@@ -37,39 +45,14 @@ jobs:
3745
node_modules
3846
*/*/node_modules
3947
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
48+
4049
- name: Install dependencies
4150
run: yarn install
51+
4252
- name: Install example app dependencies
4353
run: yarn install
4454
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 }}
7558
working-directory: example/android

0 commit comments

Comments
 (0)