macOS-aarch64 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS-aarch64 | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout JRE repository | |
uses: actions/checkout@v4 | |
- name: Checkout JDK repository | |
uses: actions/checkout@v4 | |
with: | |
repository: mucommander/jdk | |
- name: 'Get the BootJDK' | |
id: bootjdk | |
uses: mucommander/jdk/.github/actions/get-bootjdk@refs/heads/master | |
with: | |
platform: macos-aarch64 | |
- name: 'Get JTReg' | |
id: jtreg | |
uses: mucommander/jdk/.github/actions/get-jtreg@refs/heads/master | |
- name: 'Install toolchain and dependencies' | |
run: | | |
# Run Homebrew installation and xcode-select | |
brew install autoconf make | |
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer | |
# This will make GNU make available as 'make' and not only as 'gmake' | |
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH | |
- name: 'Configure' | |
run: > | |
bash configure | |
--with-conf-name=${{ inputs.platform }} | |
${{ matrix.flags }} | |
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA} | |
--with-boot-jdk=${{ steps.bootjdk.outputs.path }} | |
--with-jtreg=${{ steps.jtreg.outputs.path }} | |
--with-gtest=${{ steps.gtest.outputs.path }} | |
--with-zlib=system | |
--with-jmod-compress=zip-1 | |
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || ( | |
echo "Dumping config.log:" && | |
cat config.log && | |
exit 1) | |
- name: Build JDK | |
uses: mucommander/jdk/.github/actions/do-build@refs/heads/master | |
with: | |
platform: macos-aarch64 | |
make-target: images |