@@ -142,15 +142,29 @@ jobs:
142142 restore-keys : |
143143 ${{ runner.os }}-cargo-build-
144144
145- # 8) Build the Rust goosed binary
145+ # 8) Set up Go for building temporal-service
146+ - name : Set up Go
147+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # pin@v5
148+ with :
149+ go-version : ' 1.21'
150+
151+ # 9) Build temporal-service using build.sh script
152+ - name : Build temporal-service
153+ run : |
154+ echo "Building temporal-service using build.sh script..."
155+ cd temporal-service
156+ ./build.sh
157+ echo "temporal-service built successfully"
158+
159+ # 10) Build the Rust goosed binary
146160 - name : Build goosed binary
147161 run : |
148162 echo "Building goosed binary for Linux..."
149163 cargo build --release -p goose-server
150164 ls -la target/release/
151165 file target/release/goosed
152166
153- # 9 ) Clean up build artifacts to save space
167+ # 11 ) Clean up build artifacts to save space
154168 - name : Clean up build artifacts
155169 run : |
156170 echo "Cleaning up to save disk space..."
@@ -167,16 +181,18 @@ jobs:
167181 # Check disk space
168182 df -h
169183
170- # 10 ) Copy binary to Electron folder
171- - name : Copy binary into Electron folder
184+ # 12 ) Copy binaries to Electron folder
185+ - name : Copy binaries into Electron folder
172186 run : |
173- echo "Copying goosed binary to ui/desktop/src/bin/"
187+ echo "Copying binaries to ui/desktop/src/bin/"
174188 mkdir -p ui/desktop/src/bin
175189 cp target/release/goosed ui/desktop/src/bin/
190+ cp temporal-service/temporal-service ui/desktop/src/bin/
176191 chmod +x ui/desktop/src/bin/goosed
192+ chmod +x ui/desktop/src/bin/temporal-service
177193 ls -la ui/desktop/src/bin/
178194
179- # 10a ) Final cleanup before npm build
195+ # 13 ) Final cleanup before npm build
180196 - name : Final cleanup before npm build
181197 run : |
182198 echo "Final cleanup before npm build..."
@@ -188,7 +204,7 @@ jobs:
188204 # Check final disk space
189205 df -h
190206
191- # 12 ) Install npm dependencies
207+ # 14 ) Install npm dependencies
192208 - name : Install npm dependencies
193209 run : |
194210 cd ui/desktop
@@ -199,7 +215,7 @@ jobs:
199215 # Verify installation
200216 ls -la node_modules/.bin/ | head -5
201217
202- # 13 ) Build Electron app with Linux makers (.deb and .rpm)
218+ # 15 ) Build Electron app with Linux makers (.deb and .rpm)
203219 - name : Build Linux packages
204220 run : |
205221 cd ui/desktop
@@ -212,7 +228,7 @@ jobs:
212228 ls -la out/
213229 find out/ -name "*.deb" -o -name "*.rpm" | head -10
214230
215- # 14 ) List all generated files for debugging
231+ # 16 ) List all generated files for debugging
216232 - name : List generated files
217233 run : |
218234 echo "=== All files in out/ directory ==="
@@ -224,23 +240,23 @@ jobs:
224240 echo "=== File sizes ==="
225241 find ui/desktop/out/ -name "*.deb" -o -name "*.rpm" -exec ls -lh {} \;
226242
227- # 15 ) Upload .deb package
243+ # 17 ) Upload .deb package
228244 - name : Upload .deb package
229245 uses : actions/upload-artifact@v4
230246 with :
231247 name : Goose-linux-x64-deb
232248 path : ui/desktop/out/make/deb/x64/*.deb
233249 if-no-files-found : error
234250
235- # 16 ) Upload .rpm package
251+ # 18 ) Upload .rpm package
236252 - name : Upload .rpm package
237253 uses : actions/upload-artifact@v4
238254 with :
239255 name : Goose-linux-x64-rpm
240256 path : ui/desktop/out/make/rpm/x64/*.rpm
241257 if-no-files-found : error
242258
243- # 17 ) Create combined artifact with both packages
259+ # 19 ) Create combined artifact with both packages
244260 - name : Upload combined Linux packages
245261 uses : actions/upload-artifact@v4
246262 with :
0 commit comments