Skip to content

Commit 64fdba8

Browse files
debug: add Player.log location finder before upload
1 parent f481f73 commit 64fdba8

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/ui-tests.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,25 @@ jobs:
156156
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
157157
working-directory: sample-unity6/Tests
158158
run: pytest -xs test/test_mac.py::MacTest
159+
- name: Find Player.log location
160+
if: always()
161+
run: |
162+
echo "Searching for Player.log..."
163+
find sample-unity6/Tests -name "Player.log" -type f || echo "No Player.log found in Tests directory"
164+
echo "---"
165+
echo "Checking standard macOS log locations..."
166+
ls -la ~/Library/Logs/ 2>/dev/null || echo "~/Library/Logs not accessible"
167+
echo "---"
168+
echo "Contents of .app bundle:"
169+
ls -laR "sample-unity6/Tests/Sample Unity 6 macOS.app/Contents/" 2>/dev/null | head -50 || echo "App bundle not found"
159170
- name: Upload Player.log (runtime logs)
160171
if: always()
161172
uses: actions/upload-artifact@v4
162173
with:
163174
name: Unity6-macOS-Player-Log
164-
path: sample-unity6/Tests/Sample Unity 6 macOS.app/Contents/Player.log
175+
path: |
176+
sample-unity6/Tests/Sample Unity 6 macOS.app/Contents/MacOS/Sample Unity 6 macOS_Data/Player.log
177+
sample-unity6/Tests/Sample Unity 6 macOS.app/Contents/Player.log
165178
if-no-files-found: warn
166179
- name: Remove temporary keychain
167180
if: always()
@@ -323,6 +336,14 @@ jobs:
323336
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
324337
working-directory: sample-unity6/Tests
325338
run: python -m pytest -xs test/test_windows.py::WindowsTest
339+
- name: Find Player.log location
340+
if: always()
341+
run: |
342+
Write-Output "Searching for Player.log in Tests directory..."
343+
Get-ChildItem -Path "sample-unity6/Tests" -Filter "Player.log" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName
344+
Write-Output "---"
345+
Write-Output "Contents of build directory:"
346+
Get-ChildItem -Path "sample-unity6/Tests" -Recurse | Select-Object FullName | Out-String | Select-Object -First 30
326347
- name: Upload Player.log (runtime logs)
327348
if: always()
328349
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)