diff --git a/.github/workflows/assemble-native.yml b/.github/workflows/assemble-native.yml
index 014ebe7..9d085dd 100644
--- a/.github/workflows/assemble-native.yml
+++ b/.github/workflows/assemble-native.yml
@@ -16,13 +16,15 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ macos-13, windows-latest ]
+ os: [ macos-13, macos-latest, windows-latest ]
jdk_arch: [ x86_64, aarch64 ]
exclude:
- os: macos-13
jdk_arch: aarch64
- os: windows-latest
jdk_arch: aarch64
+ - os: macos-latest
+ jdk_arch: x86_64
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
runs-on: ${{ matrix.os }}
steps:
@@ -65,7 +67,7 @@ jobs:
- name: Remove windows lib
if: startsWith(matrix.os, 'windows') != true
# TODO remove this for oll other os as well
- run: rm sdkman-ui/target/gluonfx/x86_64-darwin/gvm/lib/libjnidispatch.a
+ run: rm -f sdkman-ui/target/gluonfx/${{ matrix.jdk_arch }}-darwin/gvm/lib/libjnidispatch.a
- name: Link native
run: ./mvnw -B gluonfx:link -f sdkman-ui
- name: Assemble zip
diff --git a/sdkman-ui/pom.xml b/sdkman-ui/pom.xml
index b27b3dd..54c9920 100644
--- a/sdkman-ui/pom.xml
+++ b/sdkman-ui/pom.xml
@@ -174,12 +174,12 @@
${maven-assembly-plugin.version}
- make-zip-x86_64
+ make-zip-${os.arch}
- sdkman-ui-osx_x86_64-${project.version}
+ sdkman-ui-osx_${os.arch}-${project.version}
false
- src/main/assembly/zip-osx-x86_64.xml
+ src/main/assembly/zip-osx-${os.arch}.xml
diff --git a/sdkman-ui/src/main/assembly/zip-osx-aarch64.xml b/sdkman-ui/src/main/assembly/zip-osx-aarch64.xml
new file mode 100644
index 0000000..81be388
--- /dev/null
+++ b/sdkman-ui/src/main/assembly/zip-osx-aarch64.xml
@@ -0,0 +1,17 @@
+
+ zip
+ false
+
+
+ zip
+
+
+
+
+ /
+ sdkman-ui
+
+
+
\ No newline at end of file