File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ use risc0_build:: { DockerOptionsBuilder , GuestOptionsBuilder } ;
2+ use std:: collections:: HashMap ;
3+
14fn main ( ) {
25 sp1_build:: build_program_with_args ( "./aggregation_programs/sp1" , {
36 sp1_build:: BuildArgs {
@@ -6,5 +9,16 @@ fn main() {
69 }
710 } ) ;
811
9- risc0_build:: embed_methods ( ) ;
12+ // With this containerized build process, we ensure that all builds of the guest code,
13+ // regardless of the machine or local environment, will produce the same ImageID
14+ let docker_options = DockerOptionsBuilder :: default ( ) . build ( ) . unwrap ( ) ;
15+ // Reference: https://github.com/risc0/risc0/blob/main/risc0/build/src/config.rs#L73-L90
16+ let guest_options = GuestOptionsBuilder :: default ( )
17+ . use_docker ( docker_options)
18+ . build ( )
19+ . unwrap ( ) ;
20+ risc0_build:: embed_methods_with_options ( HashMap :: from ( [ (
21+ "risc0_aggregation_program" ,
22+ guest_options,
23+ ) ] ) ) ;
1024}
You can’t perform that action at this time.
0 commit comments