Skip to content

Commit e216101

Browse files
committed
Add Android back in, timestamps for the run, print game logs
1 parent 219801c commit e216101

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
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

.github/workflows/run-demo.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,22 @@ jobs:
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"

0 commit comments

Comments
 (0)