From a07e567eb2f918dd95bc09863e3d5574dd333162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Wed, 12 Feb 2025 23:08:44 +0100 Subject: [PATCH] Set debug to false in ci-build.yml (#5458) --- .github/workflows/ci-build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index fd54e675cf..72ee5560ec 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -54,6 +54,20 @@ jobs: override: true components: rustfmt, clippy + # To avoid running out of disk space, skip generating debug symbols + - name: Set debug to false (unix) + if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'mac') + run: | + sed -i.bak 's/\[profile.dev\]/\[profile.dev\]\ndebug = false/' Cargo.toml + git diff + + - name: Set debug to false (win) + if: contains(matrix.os, 'windows') + shell: pwsh + run: | + (Get-Content Cargo.toml) -replace '\[profile.dev\]', "`$&`ndebug = false" | Set-Content Cargo.toml + git diff + - name: Check formatting uses: actions-rs/cargo@v1 with: