Skip to content

Commit ea051b9

Browse files
committed
debug: mcpp#230 windows repro with MCPP_LOG_LEVEL=debug
1 parent b80ecb6 commit ea051b9

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: debug-mcpp230
2+
on:
3+
push:
4+
branches: [ "debug/mcpp230-windows-repro" ]
5+
permissions:
6+
contents: read
7+
env:
8+
MCPP_VERSION: "0.0.95"
9+
jobs:
10+
win-repro:
11+
runs-on: windows-latest
12+
timeout-minutes: 30
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Download mcpp
16+
shell: bash
17+
run: |
18+
curl -L -fsS -o mcpp.zip \
19+
"https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/mcpp-${MCPP_VERSION}-windows-x86_64.zip"
20+
powershell -NoProfile -Command "Expand-Archive -Force -Path 'mcpp.zip' -DestinationPath '.'"
21+
root="$PWD/mcpp-${MCPP_VERSION}-windows-x86_64"
22+
mkdir -p "$HOME/.mcpp/registry"
23+
cp -a "$root/registry/." "$HOME/.mcpp/registry/"
24+
echo "MCPP=$(cygpath -m "$root/bin/mcpp.exe")" >> "$GITHUB_ENV"
25+
- name: repro archive member with debug log
26+
shell: bash
27+
continue-on-error: true
28+
env:
29+
MCPP_INDEX_MIRROR: GLOBAL
30+
MCPP_LOG_LEVEL: debug
31+
run: |
32+
"$MCPP" --version
33+
set +e
34+
"$MCPP" test -p archive
35+
rc=$?
36+
echo "==== mcpp test exit code: $rc ===="
37+
- name: dump mcpp.log tail
38+
if: always()
39+
shell: bash
40+
run: |
41+
for f in "$HOME"/.mcpp/log/*.log; do
42+
echo "===== $f (last 150 lines) ====="
43+
tail -n 150 "$f" || true
44+
done
45+
echo "===== Windows Application event log (crashes) ====="
46+
powershell -NoProfile -Command "Get-WinEvent -FilterHashtable @{LogName='Application'; Id=1000,1001} -MaxEvents 10 -ErrorAction SilentlyContinue | Format-List TimeCreated, Message" || true

0 commit comments

Comments
 (0)