File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2025 Oxide Computer Company
3+ */
4+
15use std:: cmp:: Ordering ;
26use std:: io:: { Seek , Write } ;
37use std:: path:: PathBuf ;
@@ -172,6 +176,30 @@ fn build_linux_agent() -> Result<()> {
172176 . stderr ( Stdio :: inherit ( ) )
173177 . status ( ) ?;
174178
179+ println ! ( "downloading built agent..." ) ;
180+
181+ Command :: new ( "buildomat" )
182+ . arg ( "job" )
183+ . arg ( "copy" )
184+ . arg ( & jid)
185+ . arg ( "/out/buildomat-agent-linux.gz" )
186+ . arg ( "./buildomat-agent-linux.gz" )
187+ . stdin ( Stdio :: inherit ( ) )
188+ . stdout ( Stdio :: inherit ( ) )
189+ . stderr ( Stdio :: inherit ( ) )
190+ . status ( ) ?;
191+
192+ println ! ( "unpacking agent..." ) ;
193+
194+ Command :: new ( "gunzip" )
195+ . arg ( "./buildomat-agent-linux.gz" )
196+ . stdin ( Stdio :: inherit ( ) )
197+ . stdout ( Stdio :: inherit ( ) )
198+ . stderr ( Stdio :: inherit ( ) )
199+ . status ( ) ?;
200+
201+ println ! ( "ok" ) ;
202+
175203 Ok ( ( ) )
176204}
177205
You can’t perform that action at this time.
0 commit comments