Skip to content

Commit

Permalink
Return or throw HRESULTs from published samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 28, 2023
1 parent 63611a4 commit 8e66e2d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ jobs:
sleep -Seconds 2;
$process.CloseMainWindow() | Out-Null;
$process.WaitForExit();
$process.ExitCode
if ($process.ExitCode -lt 0) { throw $process.ExitCode; }
return $process.ExitCode;
# Upload the binary (to track binary size trends)
- if: matrix.platform == 'x64'
Expand Down Expand Up @@ -271,7 +272,8 @@ jobs:
sleep -Seconds 2;
$process.CloseMainWindow() | Out-Null;
$process.WaitForExit();
$process.ExitCode
if ($process.ExitCode -lt 0) { throw $process.ExitCode; }
return $process.ExitCode;
# Upload the binary again (with a different name)
- if: matrix.platform == 'x64'
Expand All @@ -297,7 +299,8 @@ jobs:
sleep -Seconds 2;
$process.CloseMainWindow() | Out-Null;
$process.WaitForExit();
$process.ExitCode
if ($process.ExitCode -lt 0) { throw $process.ExitCode; }
return $process.ExitCode;
# Download the NuGet packages generated in the previous job and use them
# to build and run the sample project referencing them. This is used as
Expand Down

0 comments on commit 8e66e2d

Please sign in to comment.