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