[FEAT] Add TARGET_OS

Used to name the tarballs a bit clearer, mainly for Jenkins.
This commit is contained in:
Eva Isabella Luna 2025-06-29 19:32:03 -06:00 committed by GitHub
parent a23217a8f3
commit 2c9325e911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View File

@ -34,7 +34,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: "jdk8-${{matrix.arch}}"
path: jdk8*.tar.xz
path: jdk8-android*.tar.xz
- name: Setup tmate session if failed
if: ${{ failure() }}
@ -44,7 +44,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: 'jre8-${{matrix.arch}}'
path: jre8*.tar.xz
path: jre8-android*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v4
with:
@ -71,13 +71,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: "jdk8-ios-aarch64"
path: jdk8*.tar.xz
path: jdk8-ios*.tar.xz
- name: Upload JRE build output
uses: actions/upload-artifact@v4
with:
name: 'jre8-ios-aarch64'
path: jre8*.tar.xz
path: jre8-ios*.tar.xz
- name: Upload JRE debuginfo build output
uses: actions/upload-artifact@v4

View File

@ -50,6 +50,8 @@ if [[ "$BUILD_IOS" == "1" ]]; then
export HOTSPOT_DISABLE_DTRACE_PROBES=1
export ANDROID_INCLUDE=$PWD/ios-missing-include
export TARGET_OS=ios
else
export JVM_PLATFORM=linux
@ -76,4 +78,6 @@ export LD=$TOOLCHAIN/bin/$TARGET-ld
export OBJCOPY=$TOOLCHAIN/bin/$TARGET-objcopy
export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib
export STRIP=$TOOLCHAIN/bin/$TARGET-strip
export TARGET_OS=android
fi

View File

@ -34,8 +34,8 @@ cd jreout
# Strip in place all .so files thanks to the ndk
find ./ -name '*.so' -execdir ${NDK}${NDK_PREBUILT_ARCH} {} \;
tar cJf ../jre8-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
tar cJf ../jre8-${TARGET_OS}-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
cd ../jdkout
tar cJf ../jdk8-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
tar cJf ../jdk8-${TARGET_OS}-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .