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

Updated GraalVM version to 22.0.0.2 #1159

Merged
merged 1 commit into from
Mar 9, 2022
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
24 changes: 14 additions & 10 deletions .github/workflows/native-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
build-binary-unix:
runs-on: ${{ matrix.os }}
env:
GRAALVM_VERSION: 20.3.0.java8
GRAALVM_VERSION: 22.0.0.2
GRAALVM_JAVA: java17
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -35,10 +36,12 @@
key: ${{ runner.os }}-graalvm-${{env.GRAALVM_VERSION}}
restore-keys: |
${{ runner.os }}-graalvm-
- uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
- uses: DeLaGuardo/setup-graalvm@5.0
with:
graalvm-version: ${{env.GRAALVM_VERSION}}
- run: ./mvnw package -Dnative -DskipTests $([ $(uname -s) = Linux ] && echo "-Dgraalvm.static=--static") -Dcbi.jarsigner.skip=true
graalvm: ${{env.GRAALVM_VERSION}}
java: ${{env.GRAALVM_JAVA}}
- run: ./mvnw -B package -Dnative -DskipTests $([ $(uname -s) = Linux ] && echo "-Dgraalvm.static=-H:+StaticExecutableWithDynamicLibC") -Dcbi.jarsigner.skip=true
- run: rm org.eclipse.lemminx/target/*.build_artifacts.txt
- run: mv org.eclipse.lemminx/target/lemminx-* lemminx-$(git rev-parse --short "$GITHUB_SHA")-${{ matrix.label }}
- uses: actions/upload-artifact@v2
with:
Expand All @@ -48,7 +51,8 @@
build-binary-windows:
runs-on: windows-latest
env:
GRAALVM_VERSION: 20.3.0.java11
GRAALVM_VERSION: 22.0.0.2
GRAALVM_JAVA: java17
steps:
- uses: actions/checkout@v2
- name: Cache Maven dependencies
Expand All @@ -69,12 +73,12 @@
key: ${{ runner.os }}-graalvm-${{env.GRAALVM_VERSION}}
restore-keys: |
${{ runner.os }}-graalvm-
- uses: ilammy/msvc-dev-cmd@v1.4.1
- uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
- uses: ilammy/msvc-dev-cmd@v1.10.0
- uses: DeLaGuardo/setup-graalvm@5.0
with:
graalvm-version: '${{env.GRAALVM_VERSION}}'
- run: Invoke-Expression -Command "$Env:JAVA_HOME/bin/gu install native-image"
- run: .\mvnw.cmd package -Dnative -DskipTests "-Dcbi.jarsigner.skip=true"
graalvm: ${{env.GRAALVM_VERSION}}
java: ${{env.GRAALVM_JAVA}}
- run: .\mvnw.cmd -B package -Dnative -DskipTests -D "cbi.jarsigner.skip=true"
- run: mv org.eclipse.lemminx\target\lemminx-*.exe lemminx-$(git rev-parse --short "$Env:GITHUB_SHA")-win32.exe
- uses: actions/upload-artifact@v2
with:
Expand Down
12 changes: 6 additions & 6 deletions org.eclipse.lemminx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
<dev.build.timestamp>${maven.build.timestamp}</dev.build.timestamp>
<cbi.jarsigner.skip>true</cbi.jarsigner.skip>
<graalvm.version>20.3.0</graalvm.version>
<native.maven.plugin.version>0.9.10</native.maven.plugin.version>
<graalvm.static />
AlexXuChen marked this conversation as resolved.
Show resolved Hide resolved
</properties>
<build>
Expand Down Expand Up @@ -152,13 +152,13 @@
</executions>
</plugin>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>${graalvm.version}</version>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native.maven.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
Expand Down Expand Up @@ -268,4 +268,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>