From 168240b153e330fc5d52dfb4789e7013ce4d5abf Mon Sep 17 00:00:00 2001 From: eagleychen Date: Thu, 2 Jan 2025 17:23:39 +0800 Subject: [PATCH] downgrade android java env --- .github/workflows/android_debug_push.yml | 7 ++++++- .github/workflows/android_release_push.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android_debug_push.yml b/.github/workflows/android_debug_push.yml index cd337dd0..8d7faa2a 100644 --- a/.github/workflows/android_debug_push.yml +++ b/.github/workflows/android_debug_push.yml @@ -18,7 +18,7 @@ jobs: build: runs-on: macos-14 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download r10e NDK @@ -27,6 +27,11 @@ jobs: unzip android-ndk-r10e-darwin-x86_64.zip - name: Update SDK Version run: bash .github/script/updateVersionForSnapshot.sh + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '8' + - run: java HelloWorldApp.java - name: Build with Gradle run: | ls -l /Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e diff --git a/.github/workflows/android_release_push.yml b/.github/workflows/android_release_push.yml index 7ad47ad8..ee2a44ad 100644 --- a/.github/workflows/android_release_push.yml +++ b/.github/workflows/android_release_push.yml @@ -15,7 +15,7 @@ jobs: build: runs-on: macos-14 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: | @@ -31,6 +31,11 @@ jobs: rc=$(git rev-parse --short HEAD) cd android/ijkplayer sed -i "" 's#def version.*#def version = \"'$rt'\"#g' config.gradle + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '8' + - run: java HelloWorldApp.java - name: Update Values of Signing run: | export KEY_ID_OF_SIGN=$IOT_GPG_KEYNAME