Skip to content

Commit 168240b

Browse files
author
eagleychen
committed
downgrade android java env
1 parent e3b7713 commit 168240b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/android_debug_push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
build:
1919
runs-on: macos-14
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
- name: Download r10e NDK
@@ -27,6 +27,11 @@ jobs:
2727
unzip android-ndk-r10e-darwin-x86_64.zip
2828
- name: Update SDK Version
2929
run: bash .github/script/updateVersionForSnapshot.sh
30+
- uses: actions/setup-java@v4
31+
with:
32+
distribution: 'temurin' # See 'Supported distributions' for available options
33+
java-version: '8'
34+
- run: java HelloWorldApp.java
3035
- name: Build with Gradle
3136
run: |
3237
ls -l /Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e

.github/workflows/android_release_push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build:
1616
runs-on: macos-14
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
- run: |
@@ -31,6 +31,11 @@ jobs:
3131
rc=$(git rev-parse --short HEAD)
3232
cd android/ijkplayer
3333
sed -i "" 's#def version.*#def version = \"'$rt'\"#g' config.gradle
34+
- uses: actions/setup-java@v4
35+
with:
36+
distribution: 'temurin' # See 'Supported distributions' for available options
37+
java-version: '8'
38+
- run: java HelloWorldApp.java
3439
- name: Update Values of Signing
3540
run: |
3641
export KEY_ID_OF_SIGN=$IOT_GPG_KEYNAME

0 commit comments

Comments
 (0)