-
Notifications
You must be signed in to change notification settings - Fork 164
feat: add --arch flag support for cargo build-sbf commands #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add --arch flag support for cargo build-sbf commands #196
Conversation
Add --arch flag to build, verify-from-repo, export-pda-tx, and remote submit-job commands to support targeting specific virtual machine architectures (v0-v3). The flag is passed through to cargo build-sbf during builds and to remote verification services. Closes Ellipsis-Labs#195
|
@tracy-codes Can you bump the version please? |
src/api/client.rs
Outdated
| }); | ||
|
|
||
| // Add arch parameter if provided | ||
| if let Some(arch_value) = arch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we’ll be retrieving the arch value from the program’s PDA, could you remove the extra argument here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swaroop-osec resolved with 999e177
src/main.rs
Outdated
| .required(true) | ||
| .takes_value(true) | ||
| .help("This is the address that uploaded verified build information for the program-id"))) | ||
| .help("This is the address that uploaded verified build information for the program-id")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same applies here; the extra argument can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swaroop-osec resolved with 999e177
Signed-off-by: Tracy Adams <[email protected]>
|
@ngundotra lgtm |
This PR implements support for the
--archflag that was recently added tocargo build-sbf, resolving issue #195.Changes Made
Added
--archflag to CLI commands:solana-verify build --arch <v0|v1|v2|v3>solana-verify verify-from-repo --arch <v0|v1|v2|v3>solana-verify export-pda-tx --arch <v0|v1|v2|v3>Updated function signatures to pass the arch parameter through the entire build pipeline
Integrated with Docker builds to pass
--archflag tocargo build-sbfwhen specifiedAdded remote verification support to include arch parameter in API calls
Added proper help text indicating the default value is
v0Usage Examples
Implementation Details
The
--archflag accepts valuesv0,v1,v2,v3(matchingcargo build-sbfoptions) withv0as the default. When specified, the flag is passed to the underlyingcargo build-sbfcommand during Docker-based builds.Closes #195