Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

ci(macrod): build the update test without debug info on macOS and Windows (#9766)

teoa0465c45a35b
diff --git a/.github/workflows/test_macrod_update.yml b/.github/workflows/test_macrod_update.yml
index cf13366b5e..f2f1016c6c 100644
--- a/.github/workflows/test_macrod_update.yml
+++ b/.github/workflows/test_macrod_update.yml
@@ -91,6 +91,8 @@ jobs:
macos:
name: macrod update (macos)
runs-on: nscloud-macos-sequoia-arm64-6x14
+ env:
+ CARGO_PROFILE_DEV_DEBUG: '0'
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -118,6 +120,8 @@ jobs:
windows:
name: macrod update (windows)
runs-on: nscloud-windows-2022-amd64-8x16
+ env:
+ CARGO_PROFILE_DEV_DEBUG: '0'
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/test_macrod_update.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/test_macrod_update.rs
index 3e6a1235bc..600d8e480a 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/test_macrod_update.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/test_macrod_update.rs
@@ -70,6 +70,9 @@ fn linux_job() -> Job {
fn macos_job() -> Job {
Job::default()
.name("macrod update (macos)")
+ // These runners have no compiler cache, and the test only needs a working
+ // binary, so debug info is pure cost.
+ .add_env(("CARGO_PROFILE_DEV_DEBUG", "0"))
.runs_on(runners::Runner::MacOsArm.to_string())
.add_step(steps::checkout(false, false))
.add_step(steps::setup_rust_light())
@@ -91,6 +94,9 @@ fn macos_job() -> Job {
fn windows_job() -> Job {
Job::default()
.name("macrod update (windows)")
+ // These runners have no compiler cache, and the test only needs a working
+ // binary, so debug info is pure cost.
+ .add_env(("CARGO_PROFILE_DEV_DEBUG", "0"))
.runs_on(runners::Runner::Windows.to_string())
.add_step(steps::checkout(false, false))
.add_step(steps::setup_rust_light())