Skip to content

Commit

Permalink
- Updated GraalVM to 22.0.0.2
Browse files Browse the repository at this point in the history
- Updated native-maven-plugin to 0.9.10
- Use setup-graalvm 5.0 GitHub Action
- Use msvc-dev-cmd 1.10.0 GitHub Action

Signed-off-by: Alexander Chen <[email protected]>
  • Loading branch information
Alexander Chen committed Mar 2, 2022
1 parent 3ae1f16 commit 80c00c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
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 />
</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>

0 comments on commit 80c00c4

Please sign in to comment.