File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2828 include :
2929 - targetPlatform : StandaloneWindows64
3030 os : windows-latest
31- # - targetPlatform: Android
32- # os: ubuntu-latest
31+ - targetPlatform : Android
32+ os : ubuntu-latest
3333 # - targetPlatform: StandaloneLinux64
3434 # os: ubuntu-latest
3535
Original file line number Diff line number Diff line change 2727 $exePath = Get-ChildItem -Path "./build" -Filter "SentaurSurvivors-*.exe" -Recurse | Select-Object -First 1
2828 if ($exePath) {
2929 Write-Output "Found executable: $($exePath.FullName)"
30+ $startTime = Get-Date
3031 Start-Process -FilePath $exePath -ArgumentList "-dsn", "${{ secrets.DSN }}" -Wait -PassThru -NoNewWindow
32+ $endTime = Get-Date
33+ $duration = $endTime - $startTime
34+ Write-Output "Game finished in $($duration.ToString('hh\:mm\:ss'))"
35+
36+ # Capture Unity logs
37+ $logPath = "$env:USERPROFILE\AppData\LocalLow\Sentry\SentaurSurvivors\Player.log"
38+ if (Test-Path $logPath) {
39+ Write-Output "::group::Unity Game Logs"
40+ Get-Content $logPath
41+ Write-Output "::endgroup::"
42+ } else {
43+ Write-Output "Unity log file not found at: $logPath"
44+ }
45+
3146 Write-Output "Build executed successfully"
3247 } else {
3348 Write-Error "No SentaurSurvivors executable found in build artifacts"
You can’t perform that action at this time.
0 commit comments