mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-08-03 23:55:58 -04:00
build: make it easier to follow script execution
This commit is contained in:
parent
52493b4db7
commit
7fc629ab1c
160
.github/workflows/build.yml
vendored
160
.github/workflows/build.yml
vendored
@ -5,110 +5,110 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 1 */2 *'
|
- cron: "0 1 1 */2 *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_android:
|
build_android:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [ "aarch32", "aarch64", "x86", "x86_64" ]
|
arch: ["aarch32", "aarch64", "x86", "x86_64"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
name: "Build for Android ${{matrix.arch}}"
|
name: "Build for Android ${{matrix.arch}}"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: set up JDK 1.17
|
- name: set up JDK 1.17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt -y install autoconf python3 python-is-python3 unzip zip systemtap-sdt-dev libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev libxext-dev libxrandr-dev libxrender-dev libxtst-dev libxt-dev
|
sudo apt -y install autoconf python3 python-is-python3 unzip zip systemtap-sdt-dev libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev libxext-dev libxrandr-dev libxrender-dev libxtst-dev libxt-dev
|
||||||
- name: Build with CI build script
|
- name: Build with CI build script
|
||||||
run: bash "ci_build_arch_${{matrix.arch}}.sh"
|
run: bash "1_ci_build_arch_${{matrix.arch}}.sh"
|
||||||
- name: Upload JDK build output
|
- name: Upload JDK build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "jdk17-${{matrix.arch}}"
|
name: "jdk17-${{matrix.arch}}"
|
||||||
path: jdk17*.tar.xz
|
path: jdk17*.tar.xz
|
||||||
- name: Upload JRE build output
|
- name: Upload JRE build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: 'jre17-${{matrix.arch}}'
|
name: "jre17-${{matrix.arch}}"
|
||||||
path: jre17*.tar.xz
|
path: jre17*.tar.xz
|
||||||
- name: Upload JRE debuginfo build output
|
- name: Upload JRE debuginfo build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "jre17-debuginfo-${{matrix.arch}}"
|
name: "jre17-debuginfo-${{matrix.arch}}"
|
||||||
path: dizout
|
path: dizout
|
||||||
|
|
||||||
build_iosport:
|
build_iosport:
|
||||||
name: "Build for iOS aarch64"
|
name: "Build for iOS aarch64"
|
||||||
runs-on: MacStadium
|
runs-on: MacStadium
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with CI build script
|
- name: Build with CI build script
|
||||||
run: |
|
run: |
|
||||||
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
|
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
|
||||||
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
|
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
|
||||||
export BUILD_IOS=1
|
export BUILD_IOS=1
|
||||||
bash "ci_build_arch_aarch64.sh"
|
bash "1_ci_build_arch_aarch64.sh"
|
||||||
|
|
||||||
# - name: Upload JDK build output
|
# - name: Upload JDK build output
|
||||||
# uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
# with:
|
# with:
|
||||||
# name: "jdk17-ios-aarch64"
|
# name: "jdk17-ios-aarch64"
|
||||||
# path: jdk17*.tar.xz
|
# path: jdk17*.tar.xz
|
||||||
|
|
||||||
- name: Upload JRE build output
|
- name: Upload JRE build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: 'jre17-ios-aarch64'
|
name: "jre17-ios-aarch64"
|
||||||
path: jre17*.tar.xz
|
path: jre17*.tar.xz
|
||||||
|
|
||||||
- name: Upload JRE debuginfo build output
|
- name: Upload JRE debuginfo build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "jre17-ios-debuginfo-aarch64"
|
name: "jre17-ios-debuginfo-aarch64"
|
||||||
path: dizout
|
path: dizout
|
||||||
|
|
||||||
pojav:
|
pojav:
|
||||||
needs: build_android
|
needs: build_android
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Get jre17-aarch32
|
- name: Get jre17-aarch32
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: jre17-aarch32
|
name: jre17-aarch32
|
||||||
path: pojav
|
path: pojav
|
||||||
- name: Get jre17-aarch64
|
- name: Get jre17-aarch64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: jre17-aarch64
|
name: jre17-aarch64
|
||||||
path: pojav
|
path: pojav
|
||||||
- name: Get jre17-x86
|
- name: Get jre17-x86
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: jre17-x86
|
name: jre17-x86
|
||||||
path: pojav
|
path: pojav
|
||||||
- name: Get jre17-x86_64
|
- name: Get jre17-x86_64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: jre17-x86_64
|
name: jre17-x86_64
|
||||||
path: pojav
|
path: pojav
|
||||||
- name: Repack JRE
|
- name: Repack JRE
|
||||||
run: bash "repackjre.sh" $GITHUB_WORKSPACE/pojav $GITHUB_WORKSPACE/pojav/jre17-pojav
|
run: bash "9_repackjre.sh" $GITHUB_WORKSPACE/pojav $GITHUB_WORKSPACE/pojav/jre17-pojav
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: jre17-pojav
|
name: jre17-pojav
|
||||||
path: pojav/jre17-pojav/*
|
path: pojav/jre17-pojav/*
|
||||||
|
@ -4,5 +4,4 @@ set -e
|
|||||||
export TARGET=armv7a-linux-androideabi
|
export TARGET=armv7a-linux-androideabi
|
||||||
export TARGET_JDK=arm
|
export TARGET_JDK=arm
|
||||||
|
|
||||||
bash ci_build_global.sh
|
bash 2_ci_build_global.sh
|
||||||
|
|
@ -7,5 +7,5 @@ else
|
|||||||
fi
|
fi
|
||||||
export TARGET_JDK=aarch64
|
export TARGET_JDK=aarch64
|
||||||
|
|
||||||
bash ci_build_global.sh
|
bash 2_ci_build_global.sh
|
||||||
|
|
@ -4,5 +4,5 @@ set -e
|
|||||||
export TARGET=i686-linux-android
|
export TARGET=i686-linux-android
|
||||||
export TARGET_JDK=x86
|
export TARGET_JDK=x86
|
||||||
|
|
||||||
bash ci_build_global.sh
|
bash 2_ci_build_global.sh
|
||||||
|
|
@ -4,5 +4,5 @@ set -e
|
|||||||
export TARGET=x86_64-linux-android
|
export TARGET=x86_64-linux-android
|
||||||
export TARGET_JDK=x86_64
|
export TARGET_JDK=x86_64
|
||||||
|
|
||||||
bash ci_build_global.sh
|
bash 2_ci_build_global.sh
|
||||||
|
|
@ -21,9 +21,9 @@ fi
|
|||||||
|
|
||||||
# Some modifies to NDK to fix
|
# Some modifies to NDK to fix
|
||||||
|
|
||||||
./getlibs.sh
|
./3_getlibs.sh
|
||||||
./buildlibs.sh
|
./4_buildlibs.sh
|
||||||
./clonejdk.sh
|
./5_clonejdk.sh
|
||||||
./buildjdk.sh
|
./6_buildjdk.sh
|
||||||
./removejdkdebuginfo.sh
|
./7_removejdkdebuginfo.sh
|
||||||
./tarjdk.sh
|
./8_tarjdk.sh
|
Loading…
x
Reference in New Issue
Block a user