Skip to content
Snippets Groups Projects
Unverified Commit e179bea6 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Don't compile crates a second time during `cargo publish` (#1644)

parent 275a6f8a
Branches
Tags
No related merge requests found
...@@ -33,10 +33,10 @@ impl ShellOperation for Publish { ...@@ -33,10 +33,10 @@ impl ShellOperation for Publish {
let mut command = Command::new(self.program); let mut command = Command::new(self.program);
command command
.current_dir(&self.package_path) .current_dir(&self.package_path)
.env("CARGO_INCREMENTAL", "0") // Disable incremental compilation to reduce disk space used
.arg("publish") .arg("publish")
.arg("--jobs") .arg("--jobs")
.arg("1"); .arg("1")
.arg("--no-verify"); // The crates have already been built in previous CI steps
let output = command.output()?; let output = command.output()?;
if !output.status.success() { if !output.status.success() {
let (stdout, stderr) = output_text(&output); let (stdout, stderr) = output_text(&output);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment