Commit 13cd11b
fix(release): simplify to single-runner linux-only build (#135)
v0.3.0 release run (#25779202189) failed at the publish job with:
error: git is in a dirty state
│ Please check in your pipeline what can be changing the following files:
│ ?? prebuilt/
Root cause: the workflow ran a build matrix (linux/amd64, linux/arm64,
darwin/arm64), uploaded each result as an actions artifact, then the
publish job downloaded them into `prebuilt/` — but goreleaser's
release subcommand refuses to run when the working tree has untracked
files. Worse: `goreleaser release --clean` rebuilds everything from
source ANYWAY, ignoring the downloaded artifacts, so the matrix was
wasted effort.
The original matrix was over-engineering for CGO. linux→linux
cross-compile to arm64 works cleanly with gcc-aarch64-linux-gnu (both
kuzudb and go-sqlite3 build).
Simpler design that actually ships v0.3.0:
- Single ubuntu-latest runner.
- Two `builds:` entries in .goreleaser.yml, one per arch, each with
the right CC pinned for the cross-compile.
- darwin/arm64 deferred to a follow-up workflow that uses a macos
runner and attaches binaries to the same draft Release.
Linux is the priority shape — most codeiq use is in CI / dev
containers / Linux servers. Darwin lands later without forcing v0.3.0
to wait.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e590843 commit 13cd11b
2 files changed
Lines changed: 40 additions & 87 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 33 | | |
84 | | - | |
85 | | - | |
| 34 | + | |
86 | 35 | | |
87 | 36 | | |
88 | 37 | | |
| |||
94 | 43 | | |
95 | 44 | | |
96 | 45 | | |
97 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
98 | 49 | | |
99 | 50 | | |
100 | 51 | | |
101 | 52 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 53 | | |
108 | 54 | | |
109 | 55 | | |
110 | 56 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 57 | | |
116 | 58 | | |
117 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
28 | 48 | | |
29 | 49 | | |
30 | 50 | | |
31 | 51 | | |
32 | 52 | | |
| 53 | + | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
| |||
38 | 59 | | |
39 | 60 | | |
40 | 61 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
55 | 66 | | |
56 | 67 | | |
57 | 68 | | |
| |||
0 commit comments