From 2ed9ea6bd77afab6febd9f466bfcd8f88d6dd738 Mon Sep 17 00:00:00 2001 From: Arunanshu Biswas <48434243+arunanshub@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:15:42 +0530 Subject: [PATCH] ci(actions): prevent "out of space" error on github actions ubuntu image (#804) --- .github/workflows/ci.yml | 4 ++++ Cargo.toml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7197a11c..76b8c6e9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,10 @@ jobs: steps: - uses: actions/checkout@v4 + # use mold linker instead of the default linker only on linux + - uses: rui314/setup-mold@v1 + if: ${{ runner.os == 'Linux' }} + - uses: dtolnay/rust-toolchain@stable with: components: clippy diff --git a/Cargo.toml b/Cargo.toml index 312d0934f..220cc5b24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,10 @@ repository = "https://github.com/bytebeamio/rumqtt" license = "Apache-2.0" authors = ["tekjar "] -[profile.dev.build-override] -debug = true +[profile.dev] +# producing debug info in builds takes up a lot of space on runner, and we +# are currently not using it. +debug = false [profile.release] codegen-units = 1