-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add guest build * Update README * Fix fmt & ci * Fix cargo fmt * ZKM_SKIP_PROGRAM_BUILD * Update README * Set ELF_PATH * Fix ELF_PATH fmt * Set default elf_path * Update default elf path * Update guest target path
- Loading branch information
1 parent
af29ac7
commit 58e6aa3
Showing
14 changed files
with
57 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
ZKM_SKIP_PROGRAM_BUILD: true | ||
|
||
jobs: | ||
build_and_test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fn main() { | ||
let guest_path = format!( | ||
"{}/../../guest-program/mem-alloc-vec", | ||
env!("CARGO_MANIFEST_DIR") | ||
); | ||
zkm_build::build_program(&guest_path); | ||
let guest_target_path = format!( | ||
"{}/{}/{}", | ||
guest_path, | ||
zkm_build::DEFAULT_OUTPUT_DIR, | ||
zkm_build::BUILD_TARGET | ||
); | ||
println!("cargo:rustc-env=GUEST_TARGET_PATH={}", guest_target_path); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fn main() { | ||
let guest_path = format!("{}/../../guest-program/revme", env!("CARGO_MANIFEST_DIR")); | ||
zkm_build::build_program(&guest_path); | ||
let guest_target_path = format!( | ||
"{}/{}/{}", | ||
guest_path, | ||
zkm_build::DEFAULT_OUTPUT_DIR, | ||
zkm_build::BUILD_TARGET | ||
); | ||
println!("cargo:rustc-env=GUEST_TARGET_PATH={}", guest_target_path); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fn main() { | ||
let guest_path = format!( | ||
"{}/../../guest-program/sha2-rust", | ||
env!("CARGO_MANIFEST_DIR") | ||
); | ||
zkm_build::build_program(&guest_path); | ||
let guest_target_path = format!( | ||
"{}/{}/{}", | ||
guest_path, | ||
zkm_build::DEFAULT_OUTPUT_DIR, | ||
zkm_build::BUILD_TARGET | ||
); | ||
println!("cargo:rustc-env=GUEST_TARGET_PATH={}", guest_target_path); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters