Skip to content

macOS-aarch64

macOS-aarch64 #15

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
path: jdk
- name: 'Get the BootJDK'
id: bootjdk
uses: ./.github/actions/get-bootjdk
working-directory: ./jdk

Check failure on line 22 in .github/workflows/macos_aarch64.yaml

View workflow run for this annotation

GitHub Actions / macOS-aarch64

Invalid workflow file

The workflow is not valid. .github/workflows/macos_aarch64.yaml (Line: 22, Col: 9): Unexpected value 'working-directory'
with:
platform: macos-aarch64
- name: 'Get JTReg'
id: jtreg
uses: ./jdk/.github/actions/get-jtreg
- 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: ./jdk/.github/actions/do-build
with:
platform: macos-aarch64
make-target: images
- name: Adjust JDK
run: >
./jdk/build/macosx-aarch64-server-release/images/jdk/bin/jlink --module-path ./jdk/build/macosx-aarch64-server-release/images/jdk/jmods --add-modules java.base,java.desktop,java.logging,java.naming,java.transaction.xa,java.rmi,java.management,java.security.jgss,java.sql,jdk.crypto.ec,jdk.httpserver,java.compiler --output ./macOS/aarch64/ --no-header-files --no-man-pages --strip-debug --compress=2
rm -rf ${GITHUB_WORKSPACE}/jre/macOS/aarch64/bin