Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alpine Support #991

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/native-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@
strategy:
fail-fast: true
matrix:
os: [macos-latest, macos-14, ubuntu-20.04]
label: [osx-x86_64, osx-aarch_64, linux, alpine]
include:
- os: macos-latest
label: 'osx-x86_64'
- os: macos-14
label: 'osx-aarch_64'
- os: ubuntu-20.04
label: 'linux'
- label: osx-x86_64
os: macos-latest
- label: osx-aarch_64
os: macos-14
- label: linux
os: ubuntu-20.04
prop: -Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC
- label: alpine
os: ubuntu-20.04
prop: -Dgraalvm.static=--static
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -62,7 +66,7 @@
with:
distribution: ${{env.GRAALVM_DISTRO}}
java-version: ${{env.GRAALVM_JAVA}}
- run: ./mvnw -B package -Dnative -DskipTests $([ $(uname -s) = Linux ] && echo "-Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC") -Dcbi.jarsigner.skip=true
- run: ./mvnw -B package -Dnative -DskipTests ${{ matrix.prop }} -Dcbi.jarsigner.skip=true
- run: mv org.eclipse.lemminx/target/lemminx-* lemminx-${{ matrix.label }}
- uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Prepare Binary Artifacts For Packaging
run: |
mkdir -p ../staging/zips ../staging/checksums
for f in lemminx-linux lemminx-osx-{x86_64,aarch_64} lemminx-win32; do
for f in lemminx-{linux,alpine} lemminx-osx-{x86_64,aarch_64} lemminx-win32; do
pushd ${f}
chmod u+x ${f}*
zip ../../staging/zips/${f}.zip ${f}*
Expand All @@ -128,6 +128,7 @@ jobs:
- name: Package vscode-xml
run: |
declare -A targets
targets["alpine-x64"]=alpine
targets["linux-x64"]=linux
targets["win32-x64"]=win32
targets["darwin-x64"]=osx-x86_64
Expand Down