From fd442cc2befbc1da69639c0d0f45ecd5786a4361 Mon Sep 17 00:00:00 2001 From: Cedric Vidal Date: Fri, 6 Oct 2023 03:29:03 +0000 Subject: [PATCH] Generate CLI MacOS arm64 binary in addition to x64 - Keeping backward compatible binary name for x64 - Using `macos-latest-xlarge` runner for arm64 --- .github/workflows/cli-continuous-integration.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-continuous-integration.yml b/.github/workflows/cli-continuous-integration.yml index 6e4586a9..1492c926 100644 --- a/.github/workflows/cli-continuous-integration.yml +++ b/.github/workflows/cli-continuous-integration.yml @@ -46,7 +46,7 @@ jobs: strategy: matrix: jdk-version: ['21'] - os: [ubuntu-22.04, macos-latest, windows-latest] + os: [ubuntu-22.04, macos-latest, macos-latest-xlarge, windows-latest] steps: - name: Download application package uses: actions/download-artifact@v3 @@ -60,9 +60,12 @@ jobs: - name: Build native image on Linux run: native-image --enable-url-protocols=https --static -jar nubesgen-cli-*.jar nubesgen-cli-linux if: runner.os == 'Linux' - - name: Build native image on Mac OS X + - name: Build native image on Mac OS X (arm64) + run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-macos-arm64 + if: runner.os == 'macOS' && runner.arch == 'ARM64' + - name: Build native image on Mac OS X (x64) run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-macos - if: runner.os == 'macOS' + if: runner.os == 'macOS' && runner.arch == 'X64' - name: Build native image on Windows run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-windows if: runner.os == 'Windows'