File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : ["release", "staging"]
5+ branches : ["release", "staging", "debug-windows-array-copy" ]
66 pull_request :
77 branches : ["release"]
88
3838 go build -o gd.exe
3939
4040 - name : Test
41+ env :
42+ GOTRACEBACK : crash
4143 run : |
4244 cd ./internal
43- DEBUG_CMD=1 ../cmd/gd/gd.exe test -v
45+ if [[ "$RUNNER_OS" == "Windows" ]]; then
46+ # Loop to surface the flaky native crash and capture a Go traceback.
47+ for i in $(seq 1 6); do
48+ echo "::group::windows test run $i"
49+ DEBUG_CMD=1 ../cmd/gd/gd.exe test -v || { echo "FAILED on run $i"; exit 1; }
50+ echo "::endgroup::"
51+ done
52+ else
53+ DEBUG_CMD=1 ../cmd/gd/gd.exe test -v
54+ fi
4455 shell : bash
Original file line number Diff line number Diff line change @@ -100,6 +100,6 @@ func (Windows) Test(args ...string) error {
100100 if err := os .Chdir (project .GraphicsDirectory ); err != nil {
101101 return xray .New (err )
102102 }
103- args = append (args , "--headless" )
103+ args = append (args , "--headless" , "--disable-crash-handler" )
104104 return tooling .Godot .Exec (args ... )
105105}
You can’t perform that action at this time.
0 commit comments