Build Windows (amd64) Executable #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows (amd64) Executable | |
on: | |
workflow_dispatch: | |
inputs: | |
skip-tests: | |
type: boolean | |
description: Skip Test Suite | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
msbuild-architecture: x64 | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn package -DskipTests=${{ inputs.skip-tests }} | |
- name: Output artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Windows Native Binary | |
path: native-image/target/hedgehog.exe | |
- name: Run Binary | |
run: native-image/target/hedgehog.exe |