Commit 9807185
authored
ci(desktop): rewrite publish workflow + add PR smoke build (#781)
publish-desktop.yml was carrying the old desktop app's build steps
(`bunx tsc` + downloading a CLI release asset into resources/), which
don't apply to the new architecture. Rewrite to:
- `bun run --filter @executor-js/local build` for the web app.
- `bun ./scripts/build-sidecar.ts` (with BUN_TARGET set per matrix
entry) to cross-compile the Bun sidecar binary and stage the web UI
under `apps/desktop/resources/`.
- `bunx electron-vite build` for main/preload/renderer.
- `bunx electron-builder --<platform> --<arch> --publish never` and
attach artifacts (dmg/zip/exe/AppImage/deb/rpm + latest*.yml metadata
files for electron-updater) to the release.
Also adds a `Desktop smoke build` job to ci.yml that runs the same
sidecar + electron-vite build pipeline on Linux for every PR, so
electron-vite/electron-builder breakage gets caught before merge.
build-sidecar.ts now honors the `BUN_TARGET` env var so the same script
works for native dev builds and for CI cross-compiling to the four
release targets.1 parent 19c893c commit 9807185
3 files changed
Lines changed: 67 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
80 | | - | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | | - | |
84 | | - | |
| 87 | + | |
85 | 88 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 89 | + | |
| 90 | + | |
118 | 91 | | |
119 | 92 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
123 | 96 | | |
124 | 97 | | |
125 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
126 | 104 | | |
127 | 105 | | |
128 | 106 | | |
| |||
131 | 109 | | |
132 | 110 | | |
133 | 111 | | |
| 112 | + | |
134 | 113 | | |
135 | 114 | | |
136 | 115 | | |
| 116 | + | |
| 117 | + | |
137 | 118 | | |
138 | 119 | | |
139 | 120 | | |
| |||
168 | 149 | | |
169 | 150 | | |
170 | 151 | | |
171 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
172 | 156 | | |
173 | 157 | | |
174 | 158 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
77 | | - | |
78 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
0 commit comments