Skip to content

Commit

Permalink
add items
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Jun 6, 2024
1 parent 10b04aa commit fed4dc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions check/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ fn create_image(version: &str) -> Result<()> {
RUN rustup target add wasm32-unknown-unknown
RUN rustup target add wasm32-wasi
RUN cargo install cargo-stylus
RUN cargo install --force cargo-stylus-check
RUN cargo install --force cargo-stylus-replay
RUN cargo install --force cargo-stylus-cgen
",
version
)?;
Expand Down
11 changes: 7 additions & 4 deletions check/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ enum Apis {
/// Build in a Docker container to ensure reproducibility.
///
/// Specify the Rust version to use, followed by the cargo stylus subcommand.
/// Example: `cargo stylus reproducible 1.75 check`
/// Example: `cargo stylus reproducible 1.77 check`
Reproducible {
/// Rust version to use.
#[arg()]
version: String,
rust_version: String,

/// Stylus subcommand.
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
Expand Down Expand Up @@ -163,9 +163,12 @@ async fn main_impl(args: Opts) -> Result<()> {
Apis::Deploy(config) => {
run!(deploy::deploy(config).await, "failed to deploy");
}
Apis::Reproducible { version, stylus } => {
Apis::Reproducible {
rust_version,
stylus,
} => {
run!(
docker::run_reproducible(&version, &stylus),
docker::run_reproducible(&rust_version, &stylus),
"failed reproducible run"
);
}
Expand Down

0 comments on commit fed4dc0

Please sign in to comment.