Skip to content

Commit fb0d934

Browse files
committed
Add support for LemMinX binary natively on MacOS aarch64.
- Bump graalvm/setup-graalvm to 1.1.6 and adapt to new parameters Signed-off-by: Roland Grunberg <[email protected]>
1 parent 184bdd9 commit fb0d934

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.github/workflows/native-image.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@
2121
runs-on: ${{ matrix.os }}
2222
needs: setup-xml-version
2323
env:
24-
GRAALVM_VERSION: 22.3.3
24+
GRAALVM_DISTRO: graalvm
2525
GRAALVM_JAVA: 17
2626
strategy:
2727
fail-fast: true
2828
matrix:
29-
os: [macos-latest, ubuntu-20.04]
29+
os: [macos-latest, macos-14, ubuntu-20.04]
3030
include:
3131
- os: macos-latest
3232
label: 'osx-x86_64'
33+
- os: macos-14
34+
label: 'osx-aarch_64'
3335
- os: ubuntu-20.04
3436
label: 'linux'
3537
steps:
@@ -51,17 +53,16 @@
5153
uses: actions/cache@v2
5254
with:
5355
path: |
54-
/opt/hostedtoolcache/graalvm-ce-*
55-
~/hostedtoolcache/graalvm-ce-*
56-
key: ${{ runner.os }}-graalvm-${{env.GRAALVM_VERSION}}
56+
/opt/hostedtoolcache/graalvm-jdk-*
57+
~/hostedtoolcache/graalvm-jdk-*
58+
key: ${{ runner.os }}-graalvm-jdk-${{ env.GRAALVM_JAVA }}
5759
restore-keys: |
58-
${{ runner.os }}-graalvm-
59-
- uses: graalvm/setup-graalvm@0e29e36dce77b07eb899abac809c2fce9d60c140 #v1.1.3.1
60+
${{ runner.os }}-graalvm-jdk-
61+
- uses: graalvm/setup-graalvm@a1b47fdf04e772fed6b3b46131e226f9aea5e169 #v1.1.6
6062
with:
61-
version: ${{env.GRAALVM_VERSION}}
63+
distribution: ${{env.GRAALVM_DISTRO}}
6264
java-version: ${{env.GRAALVM_JAVA}}
6365
- run: ./mvnw -B package -Dnative -DskipTests $([ $(uname -s) = Linux ] && echo "-Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC") -Dcbi.jarsigner.skip=true
64-
- run: rm org.eclipse.lemminx/target/*.build_artifacts.txt
6566
- run: mv org.eclipse.lemminx/target/lemminx-* lemminx-${{ matrix.label }}
6667
- uses: actions/upload-artifact@v3
6768
with:
@@ -72,7 +73,7 @@
7273
runs-on: windows-latest
7374
needs: setup-xml-version
7475
env:
75-
GRAALVM_VERSION: 22.3.3
76+
GRAALVM_DISTRO: graalvm
7677
GRAALVM_JAVA: 17
7778
steps:
7879
- name: Check out LemMinX
@@ -95,18 +96,18 @@
9596
with:
9697
path: |
9798
C:\hostedtoolcache\windows\graalvm-ce-*
98-
key: ${{ runner.os }}-graalvm-${{env.GRAALVM_VERSION}}
99+
key: ${{ runner.os }}-graalvm-*
99100
restore-keys: |
100101
${{ runner.os }}-graalvm-
101102
- uses: ilammy/msvc-dev-cmd@7315a94840631165970262a99c72cfb48a65d25d #v1.12.0
102-
- uses: graalvm/setup-graalvm@0e29e36dce77b07eb899abac809c2fce9d60c140 #v1.1.3.1
103+
- uses: graalvm/setup-graalvm@a1b47fdf04e772fed6b3b46131e226f9aea5e169 #v1.1.6
103104
with:
104-
version: ${{env.GRAALVM_VERSION}}
105+
distribution: ${{env.GRAALVM_DISTRO}}
105106
java-version: ${{env.GRAALVM_JAVA}}
106107
- run: .\mvnw.cmd -B package -Dnative -DskipTests -D "cbi.jarsigner.skip=true"
107108
- run: mv org.eclipse.lemminx\target\lemminx-*.exe lemminx-win32.exe
108109
- uses: actions/upload-artifact@v3
109110
with:
110111
name: lemminx-win32
111112
path: lemminx-win32.exe
112-
if-no-files-found: error
113+
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: Prepare Binary Artifacts For Packaging
117117
run: |
118118
mkdir -p ../staging/zips ../staging/checksums
119-
for f in lemminx-linux lemminx-osx-x86_64 lemminx-win32; do
119+
for f in lemminx-linux lemminx-osx-{x86_64,aarch_64} lemminx-win32; do
120120
pushd ${f}
121121
chmod u+x ${f}*
122122
zip ../../staging/zips/${f}.zip ${f}*
@@ -131,7 +131,7 @@ jobs:
131131
targets["linux-x64"]=linux
132132
targets["win32-x64"]=win32
133133
targets["darwin-x64"]=osx-x86_64
134-
targets["darwin-arm64"]=osx-x86_64
134+
targets["darwin-arm64"]=osx-aarch_64
135135
for tg in ${!targets[@]}; do
136136
cp ../staging/lemminx-${targets[${tg}]}* ./server
137137
cp ../staging/checksums/lemminx-${targets[${tg}]}.sha256 ./server

0 commit comments

Comments
 (0)