Skip to content

Commit

Permalink
Try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Dec 15, 2024
1 parent 43b2833 commit e012ddb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,15 @@ jobs:
9.x
- name: Download Procdump and prepare
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-latest' }} # see https://gist.github.com/Sedeniono/e6d6504e3bf0645937852ee5681ef9ee and https://learn.microsoft.com/it-it/sysinternals/downloads/procdump
continue-on-error: true
run: |
C:\msys64\usr\bin\wget.exe https://download.sysinternals.com/files/Procdump.zip
Expand-Archive -LiteralPath '.\Procdump.zip' -DestinationPath .\Procdump -Force
dir .\Procdump
.\Procdump\procdump.exe -accepteula
mkdir CrashDumpsDir
.\Procdump\procdump.exe -ma -i ${{ github.workspace }}\CrashDumpsDir
- if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: true
Expand All @@ -372,13 +373,9 @@ jobs:
- name: WINDOWS ONLY - Execute tests on ${{ matrix.os }} with ${{ matrix.jdk_vendor }} ${{ matrix.jdk_version }}
if: ${{ matrix.os == 'windows-latest' }}
continue-on-error: ${{ matrix.os == 'windows-latest' && matrix.framework == 'net9.0' }}
# See https://learn.microsoft.com/en-us/sysinternals/downloads/procdump for documentation of the parameters.
# Flags: -mp creates a mini dump with most memory available
# -t creates the dump when the executable terminates
# -x DumpFolder Executable Arguments: Executes the "Executable" with the specified arguments, and places all dumps in the "DumpFolder".
run: |
& ".\Procdump\procdump.exe" -accepteula -mp -t -x .\CrashDumpsDir ".\bin\${{ matrix.framework }}\JNetTest.exe"
& ".\Procdump\procdump.exe" -accepteula -mp -t -x .\CrashDumpsDir ".\bin\${{ matrix.framework }}\JNetByteBufferTest.exe"
.\bin\${{ matrix.framework }}\JNetTest.exe
.\bin\${{ matrix.framework }}\JNetByteBufferTest.exe
- if: ${{ matrix.os == 'windows-latest' && matrix.framework == 'net9.0' }}
run: (Get-EventLog -LogName Application -Newest 5).Message
Expand Down

0 comments on commit e012ddb

Please sign in to comment.