diff options
-rw-r--r-- | .github/workflows/build.yml | 10 | ||||
-rw-r--r-- | appveyor.yml | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bee8f654..2a2d0626 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -53,6 +53,16 @@ jobs: | |||
53 | shell: cmd | 53 | shell: cmd |
54 | run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" | 54 | run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" |
55 | 55 | ||
56 | - name: Export Application event log | ||
57 | if: always() | ||
58 | shell: cmd | ||
59 | run: wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" | ||
60 | |||
61 | - name: Export System event log | ||
62 | if: always() | ||
63 | shell: cmd | ||
64 | run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" | ||
65 | |||
56 | - name: Save logs | 66 | - name: Save logs |
57 | if: always() | 67 | if: always() |
58 | uses: actions/upload-artifact@v2 | 68 | uses: actions/upload-artifact@v2 |
diff --git a/appveyor.yml b/appveyor.yml index 7cfc64bf..b69e2974 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -28,6 +28,8 @@ after_build: | |||
28 | - 7z a "build\testresults.zip" @src\testresultfilelist.txt | 28 | - 7z a "build\testresults.zip" @src\testresultfilelist.txt |
29 | 29 | ||
30 | on_finish: | 30 | on_finish: |
31 | - wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" | ||
32 | - wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" | ||
31 | - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log | 33 | - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log |
32 | - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ | 34 | - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ |
33 | - ps: Push-AppveyorArtifact temp_logs_*.zip | 35 | - ps: Push-AppveyorArtifact temp_logs_*.zip |