Merge pull request #6 from nexplorer-3e/patch/jdk17-fixipv6 #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build OpenJDK 17 for Android | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_android: | |
strategy: | |
matrix: | |
arch: [ "aarch32", "aarch64", "x86", "x86_64" ] | |
fail-fast: false | |
name: "Build for Android ${{matrix.arch}}" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Build with CI build script | |
run: bash "ci_build_arch_${{matrix.arch}}.sh" | |
- name: Upload JRE build output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'jre17-${{matrix.arch}}' | |
path: jre17*.tar.xz | |
fcl: | |
needs: build_android | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get jre17-aarch32 | |
uses: actions/download-artifact@v4 | |
with: | |
name: jre17-aarch32 | |
path: fcl | |
- name: Get jre17-aarch64 | |
uses: actions/download-artifact@v4 | |
with: | |
name: jre17-aarch64 | |
path: fcl | |
- name: Get jre17-x86 | |
uses: actions/download-artifact@v4 | |
with: | |
name: jre17-x86 | |
path: fcl | |
- name: Get jre17-x86_64 | |
uses: actions/download-artifact@v4 | |
with: | |
name: jre17-x86_64 | |
path: fcl | |
- name: Repack JRE | |
run: bash "repack_jre.sh" $GITHUB_WORKSPACE/fcl $GITHUB_WORKSPACE/fcl/jre17-multiarch | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jre17-multiarch | |
path: fcl/jre17-multiarch/* |