Commit 91262df
committed
ci: improve macOS cmd test workaround - try CGO_ENABLED=0 and 1 explicitly
The LC_UUID abort on Go 1.22 + macos-latest runners is extremely persistent
and not fixed by simple retry + codesign.
New approach for the cmd package on Darwin:
- Loop over CGO_ENABLED=0 and CGO_ENABLED=1
- Build with `go test -c`
- codesign the resulting binary
- Run it directly
This gives the toolchain two different ways to produce the test binary,
increasing the chance that at least one produces a runnable binary on
flaky GitHub macOS images.
Go 1.23 macOS jobs have been passing; this targets the Go 1.22 matrix entries.1 parent 37c3c9f commit 91262df
1 file changed
Lines changed: 30 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
86 | 101 | | |
87 | | - | |
88 | | - | |
| 102 | + | |
| 103 | + | |
89 | 104 | | |
90 | | - | |
91 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
| |||
0 commit comments