@@ -35,50 +35,49 @@ jobs:
3535 with :
3636 name : ' simplelocalize-cli-${{env.VERSION}}.jar'
3737 path : ' target/simplelocalize-cli-${{env.VERSION}}.jar'
38- build-windows :
39-
40- needs : [ build-jar ]
41- name : " Build Windows executable"
42- runs-on : windows-latest
43- steps :
44- - uses : actions/checkout@v3
45- - name : " Download GraalVM"
46- run : |
47- Invoke-RestMethod -Uri https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-windows-amd64-20.1.0.zip -OutFile 'graal.zip'
48- - name : " Install GraalVM"
49- run : |
50- Expand-Archive -path 'graal.zip' -destinationpath '.'
51- - name : " Install Native Image"
52- run : |
53- graalvm-ce-java11-20.1.0\bin\gu.cmd install native-image
54- - name : " Set up Visual C Build Tools Workload for Visual Studio 2017 Build Tools"
55- run : |
56- choco install visualstudio2017-workload-vctools
57- - name : ' Get Version Number'
58- run : |
59- echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
60- shell : bash
61- - name : ' Get JAR Artifact'
62- uses : actions/download-artifact@v3
63- with :
64- name : ' simplelocalize-cli-${{env.VERSION}}.jar'
65- - name : " Build Native Image"
66- shell : cmd
67- env :
68- JAVA_HOME : ./graalvm-ce-java11-20.1.0
69- run : |
70- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
71- ./graalvm-ce-java11-20.1.0/bin/native-image --no-server -Dmicronaut.env.deduction=false --report-unsupported-elements-at-runtime -cp simplelocalize-cli-${{env.VERSION}}.jar -H:Name="simplelocalize-cli-windows" io.simplelocalize.cli.SimplelocalizeCliCommand
72- # - name: "Optimize executable"
73- # uses: svenstaro/upx-action@v2
74- # with:
75- # file: simplelocalize-cli-windows.exe
76- # args: --best
77- - name : ' Upload artifact'
78- uses : actions/upload-artifact@v3
79- with :
80- name : simplelocalize-cli-windows
81- path : ' simplelocalize-cli-windows.exe'
38+ build-windows :
39+ needs : [ build-jar ]
40+ name : " Build Windows executable"
41+ runs-on : windows-latest
42+ steps :
43+ - uses : actions/checkout@v3
44+ - name : " Download GraalVM"
45+ run : |
46+ Invoke-RestMethod -Uri https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-windows-amd64-20.1.0.zip -OutFile 'graal.zip'
47+ - name : " Install GraalVM"
48+ run : |
49+ Expand-Archive -path 'graal.zip' -destinationpath '.'
50+ - name : " Install Native Image"
51+ run : |
52+ graalvm-ce-java11-20.1.0\bin\gu.cmd install native-image
53+ - name : " Set up Visual C Build Tools Workload for Visual Studio 2017 Build Tools"
54+ run : |
55+ choco install visualstudio2017-workload-vctools
56+ - name : ' Get Version Number'
57+ run : |
58+ echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
59+ shell : bash
60+ - name : ' Get JAR Artifact'
61+ uses : actions/download-artifact@v3
62+ with :
63+ name : ' simplelocalize-cli-${{env.VERSION}}.jar'
64+ - name : " Build Native Image"
65+ shell : cmd
66+ env :
67+ JAVA_HOME : ./graalvm-ce-java11-20.1.0
68+ run : |
69+ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
70+ ./graalvm-ce-java11-20.1.0/bin/native-image --no-server -Dmicronaut.env.deduction=false --report-unsupported-elements-at-runtime -cp simplelocalize-cli-${{env.VERSION}}.jar -H:Name="simplelocalize-cli-windows" io.simplelocalize.cli.SimplelocalizeCliCommand
71+ # - name: "Optimize executable"
72+ # uses: svenstaro/upx-action@v2
73+ # with:
74+ # file: simplelocalize-cli-windows.exe
75+ # args: --best
76+ - name : ' Upload artifact'
77+ uses : actions/upload-artifact@v3
78+ with :
79+ name : simplelocalize-cli-windows
80+ path : ' simplelocalize-cli-windows.exe'
8281
8382 build-unix :
8483 needs : [ build-jar ]
0 commit comments