Skip to content

Commit

Permalink
Generate CLI MacOS arm64 binary in addition to x64
Browse files Browse the repository at this point in the history
- Keeping backward compatible binary name for x64
- Using `macos-latest-xlarge` runner for arm64
  • Loading branch information
cedricvidal authored and jdubois committed Oct 6, 2023
1 parent d8d5b9f commit fd442cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cli-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit fd442cc

Please sign in to comment.