Skip to content

Do not search for command line arguments during native executable build on Windows as they are not accessible via Java proccess API #1664

Do not search for command line arguments during native executable build on Windows as they are not accessible via Java proccess API

Do not search for command line arguments during native executable build on Windows as they are not accessible via Java proccess API #1664

Workflow file for this run

name: "PR"
on:
- pull_request
jobs:
windows-build-native-latest:
name: Daily - Windows - Native build - Latest Version
runs-on: windows-latest
strategy:
matrix:
java: [ 17 ]
graalvm-version: [ "mandrel-latest" ]
graalvm-java: [ "21" ]
steps:
- uses: actions/checkout@v4
- name: Install JDK {{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Install Helm client
uses: azure/setup-helm@v3
with:
version: v3.9.0
id: install-helm
- uses: MinoruSekine/setup-scoop@main
with:
add_extras_bucket: 'true'
- name: Install helmfile through windows scoop
shell: bash
run: scoop install helmfile
- name: Download Sysinternals Handle program used for native race debugging
shell: pwsh
run: Invoke-WebRequest https://download.sysinternals.com/files/Handle.zip -OutFile .\handle.zip
- name: Unzip Sysinternals Handle
shell: pwsh
run: Expand-Archive .\handle.zip -DestinationPath .
- name: Install cl.exe
uses: ilammy/msvc-dev-cmd@v1
- uses: microsoft/setup-msbuild@v1
- name: Setup GraalVM
id: setup-graalvm
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.graalvm-version }}
java-version: ${{ matrix.graalvm-java }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- 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/configure-pagefile-action@v1.3
- name: Build in Native mode
shell: bash
run: |
mvn -Dpred -B -fae -s .github/mvn-settings.xml clean install -Pframework,examples,native -Dquarkus.native.container-build=false -Denable-win-race-debug=true -Dza
- name: Zip Artifacts
shell: bash
if: failure()
run: |
# Disambiguate windows find from cygwin find
/usr/bin/find . -name '*-reports/*' -type d | tar -czf artifacts-latest-windows-native${{ matrix.java }}.tar -T -
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: artifacts-latest-windows-native${{ matrix.java }}
path: artifacts-latest-windows-native${{ matrix.java }}.tar