You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2021/12/17 13:10:05 UTC

[maven-mvnd] 03/03: Try to remove the custom setup for graalvm native-image on windows

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git

commit 992c940868a81893bb509891ae428d4e7121ec25
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Dec 17 13:55:50 2021 +0100

    Try to remove the custom setup for graalvm native-image on windows
---
 .github/workflows/test-jdk11.yaml | 36 ++++++------------------------------
 .github/workflows/verify.yaml     | 36 ++++++------------------------------
 2 files changed, 12 insertions(+), 60 deletions(-)

diff --git a/.github/workflows/test-jdk11.yaml b/.github/workflows/test-jdk11.yaml
index 078cd7f..83570bb 100644
--- a/.github/workflows/test-jdk11.yaml
+++ b/.github/workflows/test-jdk11.yaml
@@ -65,6 +65,12 @@ jobs:
     runs-on: windows-2019
     steps:
 
+      - uses: actions/checkout@v1
+
+      - name: Set VERSION env var
+        shell: bash
+        run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
+
       - name: setup-graalvm-ce
         uses: DeLaGuardo/setup-graalvm@5.0
         with:
@@ -74,36 +80,6 @@ jobs:
         shell: cmd
         run: gu install native-image
 
-      - uses: actions/cache@v2
-        with:
-          path: ${{ env.JAVA_HOME }}\bin\native-image.exe
-          key: ${{ runner.os }}-native-image-${{ env.GRAALVM_VERSION }}
-
-      - name: Check if native-image.exe exists
-        id: native_image_exe_exists
-        uses: andstor/file-existence-action@v1
-        with:
-          files: ${{ env.JAVA_HOME }}\bin\native-image.exe
-
-      - name: Compile native-image.cmd to native-image.exe
-        if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-        shell: cmd
-        run: |
-          call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
-          "%JAVA_HOME%\bin\native-image.cmd" -jar "%JAVA_HOME%\lib\graalvm\svm-driver.jar" native-image
-
-      - name: move native-image.exe %JAVA_HOME%\bin\
-        if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-        shell: cmd
-        run: |
-          move native-image.exe "%JAVA_HOME%\bin\"
-
-      - uses: actions/checkout@v1
-
-      - name: Set VERSION env var
-        shell: bash
-        run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
-
       - name: Skip tests when releasing from a tag
         if: startsWith(github.ref, 'refs/tags')
         shell: bash
diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml
index 23b1be6..58de2fc 100644
--- a/.github/workflows/verify.yaml
+++ b/.github/workflows/verify.yaml
@@ -65,6 +65,12 @@ jobs:
     runs-on: windows-2019
     steps:
 
+    - uses: actions/checkout@v1
+
+    - name: Set VERSION env var
+      shell: bash
+      run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
+
     - name: setup-graalvm-ce
       uses: DeLaGuardo/setup-graalvm@5.0
       with:
@@ -74,36 +80,6 @@ jobs:
       shell: cmd
       run: gu install native-image
 
-    - uses: actions/cache@v2
-      with:
-        path: ${{ env.JAVA_HOME }}\bin\native-image.exe
-        key: ${{ runner.os }}-native-image-${{ env.GRAALVM_VERSION }}
-
-    - name: Check if native-image.exe exists
-      id: native_image_exe_exists
-      uses: andstor/file-existence-action@v1
-      with:
-        files: ${{ env.JAVA_HOME }}\bin\native-image.exe
-
-    - name: Compile native-image.cmd to native-image.exe
-      if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-      shell: cmd
-      run: |
-        call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
-        "%JAVA_HOME%\bin\native-image.cmd" -jar "%JAVA_HOME%\lib\graalvm\svm-driver.jar" native-image
-
-    - name: move native-image.exe %JAVA_HOME%\bin\
-      if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-      shell: cmd
-      run: |
-        move native-image.exe "%JAVA_HOME%\bin\"
-
-    - uses: actions/checkout@v1
-
-    - name: Set VERSION env var
-      shell: bash
-      run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
-
     - name: Skip tests when releasing from a tag
       if: startsWith(github.ref, 'refs/tags')
       shell: bash