Skip to content

Commit

Permalink
build: add native build for windows-x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Oct 20, 2023
1 parent 3414a9b commit 62f8c15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, macOS-latest ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout GitHub repository'
Expand All @@ -107,6 +107,10 @@ jobs:
fetch-depth: 0
clean: true

- name: 'Add Developer Command Prompt for Microsoft Visual C++'
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1

- name: 'Set up GraalVM'
uses: graalvm/setup-graalvm@v1
with:
Expand All @@ -124,6 +128,11 @@ jobs:
run: |
./mvnw -ntp -B --file pom.xml -Pnative package "-DskipTests"
- name: 'Build Native Image (Windows)'
if: ${{ runner.os == 'windows-latest' }}
run: |
./mvnw -ntp -B --file pom.xml -Pnative package "-DskipTests"
- name: 'Build Distribution'
run: |
./mvnw -ntp -B --file pom.xml -Pdist package -DskipTests
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,11 @@ limitations under the License.
</transform>
<platform>osx-x86_64</platform>
</artifact>
<artifact>
<path>{{artifactsDir}}/{{distributionName}}-{{projectVersion}}-windows-x86_64.zip</path>
<transform>artifacts/{{distributionName}}-{{projectEffectiveVersion}}-windows-x86_64.zip</transform>
<platform>windows-x86_64</platform>
</artifact>
</artifacts>
</jikkou>
</distributions>
Expand Down

0 comments on commit 62f8c15

Please sign in to comment.