From 910f59114d4f8af44cc4d704ae99bd03abab1a19 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 29 Mar 2021 09:03:56 -0500 Subject: [PATCH] Use unpacked debuginfo on macOS CI (#2781) This shaves ~10 minutes off the testing builder since `dsymutil` is never run and the linker isn't exactly speedy moving around so much debuginfo. --- .github/actions/install-rust/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/install-rust/main.js b/.github/actions/install-rust/main.js index 9f16b81834..2de34dbf16 100644 --- a/.github/actions/install-rust/main.js +++ b/.github/actions/install-rust/main.js @@ -30,3 +30,8 @@ set_env("CARGO_INCREMENTAL", "0"); // Turn down debuginfo from 2 to 1 to help save disk space set_env("CARGO_PROFILE_DEV_DEBUG", "1"); set_env("CARGO_PROFILE_TEST_DEBUG", "1"); + +if (process.platform === 'darwin') { + set_env("CARGO_PROFILE_DEV_SPLIT_DEBUGINFO", "unpacked"); + set_env("CARGO_PROFILE_TEST_SPLIT_DEBUGINFO", "unpacked"); +}