Skip to content

Commit a37f704

Browse files
Android workaround for java version not compatible with gradle (#618)
1 parent 6617896 commit a37f704

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.github/workflows/bn_master_commit.yml

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
- name: NPM Install (Binary Package)
3636
run: npm install
3737
working-directory: ./Package
38+
- name: Setup Java
39+
uses: actions/setup-java@v3
40+
with:
41+
distribution: 'temurin'
42+
java-version: '17'
43+
check-latest: true
3844
- name: Gulp (Android)
3945
run: npx gulp buildAndroid
4046
working-directory: ./Package

.github/workflows/ios_android.yml

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
run: brew install ninja
3434
- name: 'Select XCode ${{ inputs.xcode-version }}'
3535
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-version }}.app/Contents/Developer
36+
- name: Setup Java
37+
uses: actions/setup-java@v3
38+
with:
39+
distribution: 'temurin'
40+
java-version: '17'
41+
check-latest: true
3642
- name: NPM Install (Playground)
3743
run: npm install
3844
working-directory: ./Apps/Playground

.github/workflows/pr.yml

+12
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
- name: NPM Install (Binary Package)
3434
run: npm install
3535
working-directory: ./Package
36+
- name: Setup Java
37+
uses: actions/setup-java@v3
38+
with:
39+
distribution: 'temurin'
40+
java-version: '17'
41+
check-latest: true
3642
- name: Gulp (Android)
3743
run: npx gulp buildAndroid
3844
working-directory: ./Package
@@ -80,6 +86,12 @@ jobs:
8086
cmake-version: '3.26.3'
8187
- name: Setup Ninja
8288
run: brew install ninja
89+
- name: Setup Java
90+
uses: actions/setup-java@v3
91+
with:
92+
distribution: 'temurin'
93+
java-version: '17'
94+
check-latest: true
8395
- name: NPM Install (Playground)
8496
run: npm install
8597
working-directory: ./Apps/Playground

.github/workflows/test_version.yml

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
uses: actions/setup-node@v3
6767
with:
6868
node-version: 16
69+
- name: Setup Java
70+
uses: actions/setup-java@v3
71+
with:
72+
distribution: 'temurin'
73+
java-version: '17'
74+
check-latest: true
6975
- name: Build Playground Android
7076
run: |
7177
npm uninstall -g react-native-cli @react-native-community/cli

0 commit comments

Comments
 (0)