diff --git a/Makefile.toml b/Makefile.toml index b0d839d..2923bc8 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -7,6 +7,7 @@ RUST_OPTIMIZER_VERSION = "0.13.0" RUST_VERSION = "1.69.0" [tasks.rust-optimizer] +cwd = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}" script = """ if [[ $(arch) == "arm64" ]]; then image="cosmwasm/workspace-optimizer-arm64:${RUST_OPTIMIZER_VERSION}" @@ -19,7 +20,6 @@ docker run --rm -v "$(pwd)":/code \ ${image} """ - [tasks.format] toolchain = "nightly" install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" } diff --git a/optimize.sh b/optimize.sh deleted file mode 100644 index 1a95298..0000000 --- a/optimize.sh +++ /dev/null @@ -1,4 +0,0 @@ -docker run --rm -v "$(pwd)":/code \ - --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ - --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/workspace-optimizer:0.12.10