Update rust versions
This commit is contained in:
@@ -14,13 +14,22 @@ define cp_artifact
|
||||
endef
|
||||
|
||||
define cargo_windows_default
|
||||
$(if $(findstring upgrade,$(CARGO_CMD)),
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE),
|
||||
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(WINDOWS_TARGET)
|
||||
$(call cp_artifact,$(WINDOWS_ARTIFACT), ../../../bin/$(ARTIFACT).exe)
|
||||
)
|
||||
endef
|
||||
|
||||
define cargo_unix_default
|
||||
$(if $(findstring upgrade,$(CARGO_CMD)),
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE),
|
||||
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(UNIX_TARGET)
|
||||
$(call cp_artifact,$(UNIX_ARTIFACT), ../../../bin/$(ARTIFACT))
|
||||
)
|
||||
endef
|
||||
|
||||
# Run `cargo install cargo-edit --locked`to support upgrade
|
||||
# Windows build requires "rustup target add x86_64-pc-windows-gnu" and "sudo apt-get install mingw-w64"
|
||||
Reference in New Issue
Block a user