Skip to content

Commit 14ed956

Browse files
committed
Add Github CI for OpenJDK 17 and 21
1 parent a11c6df commit 14ed956

File tree

5 files changed

+95
-3
lines changed

5 files changed

+95
-3
lines changed

.github/workflows/openjdk-17.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: OpenJDK 17
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'archives.sh'
8+
- 'common.sh'
9+
- 'jdk-17.sh'
10+
- 'patches-17/**'
11+
pull_request:
12+
13+
jobs:
14+
build-on-solaris:
15+
name: Build & Archive on Solaris
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build project inside Solaris VM
20+
uses: vmactions/[email protected]
21+
with:
22+
release: "11.4-gcc"
23+
usesh: true
24+
sync: nfs
25+
copyback: false
26+
prepare: |
27+
uname -a
28+
run: |
29+
REPO=`pwd`
30+
# avoid problems when building on NFS from Linux
31+
git clone $REPO /var/tmp/openjdk
32+
cd /var/tmp/openjdk
33+
# download bootstrap JDK version
34+
curl -o jdk-16-bootstrap.tar.xz --progress-bar -L https://github.com/psumbera/solaris-openjdk/releases/download/openjdk16-bootstrap/openjdk-16.0.2-bootstrap_SunOS-i386_bin.tar.xz
35+
gtar xf jdk-16-bootstrap.tar.xz
36+
BOOT_JDK=$(pwd)/jdk-16-bootstrap bash jdk-17.sh
37+
./archives.sh
38+
# copy archive back to NFS shared area
39+
mkdir $REPO/archives
40+
mv archives/* $REPO/archives/
41+
42+
- name: Upload Solaris build artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: openjdk-17-latest_SunOS-i386_bin
46+
path: archives/*

.github/workflows/openjdk-21.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: OpenJDK 21
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'archives.sh'
8+
- 'common.sh'
9+
- 'jdk-21.sh'
10+
- 'patches-21/**'
11+
pull_request:
12+
13+
jobs:
14+
build-on-solaris:
15+
name: Build & Archive on Solaris
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build project inside Solaris VM
20+
uses: vmactions/[email protected]
21+
with:
22+
release: "11.4-gcc"
23+
usesh: true
24+
sync: nfs
25+
copyback: false
26+
prepare: |
27+
uname -a
28+
run: |
29+
REPO=`pwd`
30+
# avoid problems when building on NFS from Linux
31+
git clone $REPO /var/tmp/openjdk
32+
cd /var/tmp/openjdk
33+
# download bootstrap JDK version
34+
curl -o jdk-20-bootstrap.tar.xz --progress-bar -L https://github.com/psumbera/solaris-openjdk/releases/download/openjdk20-i386-bootstrap/openjdk-20-bootstrap_SunOS-i386_bin.tar.xz
35+
gtar xf jdk-20-bootstrap.tar.xz
36+
BOOT_JDK=$(pwd)/jdk-20-bootstrap bash jdk-21.sh
37+
./archives.sh
38+
# copy archive back to NFS shared area
39+
mkdir $REPO/archives
40+
mv archives/* $REPO/archives/
41+
42+
- name: Upload Solaris build artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: openjdk-21-latest_SunOS-i386_bin
46+
path: archives/*

bootstrap-lts-jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ git clone https://github.com/openjdk/jdk${VERSION}u $tmpdir/jdk${VERSION}u
100100
# Building
101101

102102
echo "Building OpenJDK ${VERSION} ($(pwd)/build.log)..."
103-
JDK_GITHUB_REPO=$(pwd)/$tmpdir BOOT_JDK=$(pwd)/jdk-${BOOTSTRAP_VERSION}-bootstrap bash jdk-${VERSION}.sh 2>&1 | tee build.log | pv -l -s $total_lines -p -t -e > /dev/null
103+
LOG=debug JDK_GITHUB_REPO=$(pwd)/$tmpdir BOOT_JDK=$(pwd)/jdk-${BOOTSTRAP_VERSION}-bootstrap bash jdk-${VERSION}.sh 2>&1 | tee build.log | pv -l -s $total_lines -p -t -e > /dev/null
104104

105105
# Create archive
106106

jdk-17.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ git checkout jdk-17.0.11-ga
2525
apply_patch_series
2626

2727
PATH="$PATH" bash ./configure ${CONFIGURE_OPTIONS}
28-
gmake LOG=debug bundles
28+
gmake LOG=${LOG} bundles

jdk-21.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ git checkout jdk-21.0.8-ga
2626
apply_patch_series
2727

2828
PATH="$PATH" bash ./configure ${CONFIGURE_OPTIONS}
29-
gmake LOG=debug bundles
29+
gmake LOG=${LOG} bundles

0 commit comments

Comments
 (0)