@@ -35,50 +35,50 @@ 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+
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'
8282
8383 build-unix :
8484 needs : [ build-jar ]
0 commit comments