diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index a2bb0a11877..0616a303272 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -231,6 +231,11 @@ jobs: submodules: recursive fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: "17" + - name: Add aarch64-linux-android for Rust toolchian if: ${{ github.ref == 'refs/heads/rust' || github.event.pull_request.base.ref == 'rust' }} run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android @@ -314,11 +319,6 @@ jobs: cmakeVersion: 3.24.1 ninjaVersion: latest - - uses: actions/setup-java@v4 - with: - distribution: "temurin" - java-version: "17" - - name: Add aarch64-linux-android for Rust toolchian if: ${{ github.ref == 'refs/heads/rust' || github.event.pull_request.base.ref == 'rust' }} run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android