1717 run : npm run eslint
1818
1919 build-test-native-image :
20- runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ labels : [linux-x86_64, linux-aarch64, osx-x86_64, osx-aarch64]
23+ include :
24+ - label : linux-x86_64
25+ os : ubuntu-latest
26+ opt : -Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC
27+ - label : linux-arm64
28+ os : ubuntu-latest-arm
29+ opt : -Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC
30+ - label : mac-x86_64
31+ os : macos-13
32+ - label : mac-arm64
33+ os : macos-latest
34+ runs-on : ${{ matrix.os }}
2135 steps :
2236 - uses : actions/checkout@v4
2337 with :
@@ -26,27 +40,39 @@ jobs:
2640 with :
2741 distribution : graalvm-community
2842 java-version : 17
29- - run : ./mvnw -B package -Dnative -DskipTests -Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC -Dcbi.jarsigner.skip=true
30- - run : mv org.eclipse.lemminx/target/lemminx-* lemminx-linux
43+ - run : ./mvnw -B package -Dnative -DskipTests ${{ matrix.opt }} -Dcbi.jarsigner.skip=true
44+ - run : mv org.eclipse.lemminx/target/lemminx-* lemminx-${{ matrix.label }}
3145 - uses : actions/upload-artifact@v4
3246 with :
33- name : lemminx-linux
34- path : lemminx-linux
47+ name : lemminx-${{ matrix.label }}
48+ path : lemminx-${{ matrix.label }}
3549 if-no-files-found : error
3650
3751 smoke-test :
38- runs-on : ubuntu-latest
52+ strategy :
53+ matrix :
54+ labels : [linux-x86_64, linux-aarch64, osx-x86_64, osx-aarch64]
55+ include :
56+ - label : linux-x86_64
57+ os : ubuntu-latest
58+ - label : linux-arm64
59+ os : ubuntu-latest-arm
60+ - label : mac-x86_64
61+ os : macos-13
62+ - label : mac-arm64
63+ os : macos-latest
64+ runs-on : ${{ matrix.os }}
3965 needs : build-test-native-image
4066 steps :
4167 - uses : actions/checkout@v4
4268 - uses : actions/download-artifact@v4
4369 with :
44- name : lemminx-linux
70+ name : lemminx-${{ matrix.label }}
4571 path : server
4672 - name : Make lemminx binary executable
47- run : chmod u+x ./server/lemminx-linux
73+ run : chmod u+x ./server/lemminx-${{ matrix.label }}
4874 - name : Make lemminx binary trusted
49- run : sha256sum ./server/lemminx-linux > ./server/lemminx-linux .sha256
75+ run : sha256sum ./server/lemminx-${{ matrix.label }} > ./server/lemminx-${{ matrix.label }} .sha256
5076 - name : Install dependencies
5177 run : npm i --also=dev
5278 - name : Run smoke test suite
5581 if : always()
5682 uses : geekyeggo/delete-artifact@e46cfb9575865f907c2beb2e4170b5f4c7d77c52
5783 with :
58- name : lemminx-linux
84+ name : lemminx-${{ matrix.label }}
0 commit comments