File tree 4 files changed +37
-13
lines changed
4 files changed +37
-13
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2023, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
56
56
57
57
- name : ' Build JTReg'
58
58
run : |
59
+ # If runner architecture is x64 set JAVA_HOME_17_X64 otherwise set to JAVA_HOME_17_arm64
60
+ if [[ '${{ runner.arch }}' == 'X64' ]]; then
61
+ JDK="$JAVA_HOME_17_X64"
62
+ else
63
+ JDK="$JAVA_HOME_17_arm64"
64
+ fi
59
65
# Build JTReg and move files to the proper locations
60
- bash make/build.sh --jdk "$JAVA_HOME_11_X64 "
66
+ bash make/build.sh --jdk "$JDK "
61
67
mkdir ../installed
62
68
mv build/images/jtreg/* ../installed
63
69
working-directory : jtreg/src
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
31
31
platform :
32
32
required : true
33
33
type : string
34
+ runs-on :
35
+ required : true
36
+ type : string
34
37
extra-conf-options :
35
38
required : false
36
39
type : string
55
58
jobs :
56
59
build-macos :
57
60
name : build
58
- runs-on : macos-13
61
+ runs-on : ${{ inputs.runs-on }}
59
62
60
63
strategy :
61
64
fail-fast : false
74
77
id : bootjdk
75
78
uses : ./.github/actions/get-bootjdk
76
79
with :
77
- platform : macos-x64
80
+ platform : ${{ inputs.platform }}
78
81
79
82
- name : ' Get JTReg'
80
83
id : jtreg
87
90
- name : ' Install toolchain and dependencies'
88
91
run : |
89
92
# Run Homebrew installation and xcode-select
90
- brew install make
93
+ brew install autoconf make
91
94
sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-toolset-version }}.app/Contents/Developer
92
95
# This will make GNU make available as 'make' and not only as 'gmake'
93
96
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -223,6 +223,7 @@ jobs:
223
223
uses : ./.github/workflows/build-macos.yml
224
224
with :
225
225
platform : macos-x64
226
+ runs-on : ' macos-13'
226
227
xcode-toolset-version : ' 14.3.1'
227
228
configure-arguments : ${{ github.event.inputs.configure-arguments }}
228
229
make-arguments : ${{ github.event.inputs.make-arguments }}
@@ -234,8 +235,8 @@ jobs:
234
235
uses : ./.github/workflows/build-macos.yml
235
236
with :
236
237
platform : macos-aarch64
238
+ runs-on : ' macos-14'
237
239
xcode-toolset-version : ' 14.3.1'
238
- extra-conf-options : ' --openjdk-target=aarch64-apple-darwin'
239
240
configure-arguments : ${{ github.event.inputs.configure-arguments }}
240
241
make-arguments : ${{ github.event.inputs.make-arguments }}
241
242
if : needs.select.outputs.macos-aarch64 == 'true'
@@ -300,6 +301,16 @@ jobs:
300
301
bootjdk-platform : macos-x64
301
302
runs-on : macos-13
302
303
304
+ test-macos-aarch64 :
305
+ name : macos-aarch64
306
+ needs :
307
+ - build-macos-aarch64
308
+ uses : ./.github/workflows/test.yml
309
+ with :
310
+ platform : macos-aarch64
311
+ bootjdk-platform : macos-aarch64
312
+ runs-on : macos-14
313
+
303
314
test-windows-x64 :
304
315
name : windows-x64
305
316
needs :
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2020, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2020, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -32,10 +32,14 @@ LINUX_X64_BOOT_JDK_EXT=tar.gz
32
32
LINUX_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz
33
33
LINUX_X64_BOOT_JDK_SHA256=aa7fb6bb342319d227a838af5c363bfa1b4a670c209372f9e6585bd79da6220c
34
34
35
- WINDOWS_X64_BOOT_JDK_EXT=zip
36
- WINDOWS_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_windows_hotspot_17.0.11_9.zip
37
- WINDOWS_X64_BOOT_JDK_SHA256=fdd6664d4131370398fbc8bfbb7b46dbfec4a22a090a511fe5c379dae188c390
38
-
39
35
MACOS_X64_BOOT_JDK_EXT=tar.gz
40
36
MACOS_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_mac_hotspot_17.0.11_9.tar.gz
41
37
MACOS_X64_BOOT_JDK_SHA256=f8b96724618f4df557c47f11048d1084e98ed3eb87f0dbd5b84f768a80c3348e
38
+
39
+ MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
40
+ MACOS_AARCH64_BOOT_JDK_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.tar.gz
41
+ MACOS_AARCH64_BOOT_JDK_SHA256=09a162c58dd801f7cfacd87e99703ed11fb439adc71cfa14ceb2d3194eaca01c
42
+
43
+ WINDOWS_X64_BOOT_JDK_EXT=zip
44
+ WINDOWS_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_windows_hotspot_17.0.11_9.zip
45
+ WINDOWS_X64_BOOT_JDK_SHA256=fdd6664d4131370398fbc8bfbb7b46dbfec4a22a090a511fe5c379dae188c390
You can’t perform that action at this time.
0 commit comments