Commit 34c36aa
ci: migrate runners to namespace (#310)
## Summary
- Migrate GitHub-hosted Linux/macOS CI runners to
[namespace.so](https://namespace.so) runners for faster builds (Windows
remains on GitHub-hosted)
- Use `pipx` + `mlugg/setup-zig` for cargo-zigbuild toolchain on
namespace runners (no pre-installed pip/zig)
- Improve CI conditionals to use `matrix.target` instead of `matrix.os`
for more robust platform checks
- Simplify duplicated build/test steps using matrix variables
(`cargo_cmd`, `build_target`)
- Add Sponsors section to README crediting namespace.so
Ref: voidzero-dev/vite-plus#1066
## CI Speed Comparison
| Job | GitHub-hosted | Namespace | Change |
|-----|--------------|-----------|--------|
| Clippy | 60s | 72s | +12s (cold cache) |
| Format | 65s | 65s | same |
| Test Linux | 119s | 88s | **-31s (26% faster)** |
| Test macOS arm64 | 93s | 60s | **-33s (35% faster)** |
| Test macOS x86_64 | 217s | 138s | **-79s (36% faster)** |
| Test musl | 250s | 113s | **-137s (55% faster)** |
| Test Windows | 267s | 286s | +19s (still GH-hosted, variance) |
Linux and macOS jobs are **26–55% faster**. Overall wall time is
bottlenecked by Windows (still on GitHub-hosted).
## Test plan
- [x] CI passes on all platforms (Linux, macOS, Windows)
---------
Co-authored-by: branchseer <3612422+branchseer@users.noreply.github.com>1 parent 94fa9c4 commit 34c36aa
2 files changed
+34
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
| 90 | + | |
| 91 | + | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
| |||
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | | - | |
| 116 | + | |
106 | 117 | | |
107 | | - | |
108 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
109 | 125 | | |
110 | 126 | | |
111 | 127 | | |
| |||
128 | 144 | | |
129 | 145 | | |
130 | 146 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | | - | |
144 | | - | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
150 | | - | |
| 156 | + | |
151 | 157 | | |
152 | 158 | | |
153 | 159 | | |
| |||
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
196 | | - | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
224 | | - | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments