20231106 Release #9
Workflow file for this run
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: release-build-win64 | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install graalvm | |
uses: DeLaGuardo/setup-graalvm@master | |
with: | |
graalvm: '21.3.0' | |
java: 'java11' | |
- name: Install native-image | |
run: | | |
%JAVA_HOME%/bin/gu.cmd install native-image | |
shell: cmd | |
- name: Configure Pagefile | |
# Increased the page-file size due to memory-consumption of native-image command | |
# For details see https://github.com/actions/virtual-environments/issues/785 | |
uses: al-cheb/[email protected] | |
- name: Set version | |
run: mvnw versions:set -DnewVersion="${{ github.event.release.tag_name }}" | |
shell: cmd | |
- name: Build native executable | |
# Invoke the native-image build with the necessary Visual Studio tooling/environment intialized | |
run: | | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 | |
mvnw package -Dnative | |
shell: cmd | |
- name: Upload native executable | |
id: upload-native-executable | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: target/parisjug-event-publisher.exe | |
asset_name: parisjug-event-publisher-win64.exe | |
asset_label: win64 | |
asset_content_type: application/octet-stream |