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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,10 +33,10 @@ impl ShellOperation for Publish {
        let mut command = Command::new(self.program);
        command
            .current_dir(&self.package_path)
            .env("CARGO_INCREMENTAL", "0") // Disable incremental compilation to reduce disk space used
            .arg("publish")
            .arg("--jobs")
            .arg("1");
            .arg("1")
            .arg("--no-verify"); // The crates have already been built in previous CI steps
        let output = command.output()?;
        if !output.status.success() {
            let (stdout, stderr) = output_text(&output);