From 0a6f25a203dc04f70310ef35b593553da49f0292 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 7 Jun 2023 17:57:36 -0400 Subject: [PATCH] ci: output file system space before and after building (#19409) This will help give us better insight. --- .github/workflows/ci.generate.ts | 7 ++++++- .github/workflows/ci.yml | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 2e99e3f9b7..b9a60f76b3 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -558,7 +558,12 @@ const ci = { { name: "Build debug", if: "matrix.job == 'test' && matrix.profile == 'debug'", - run: "cargo build --locked --all-targets", + run: [ + // output fs space before and after building + "df -h", + "cargo build --locked --all-targets", + "df -h", + ].join("\n"), env: { CARGO_PROFILE_DEV_DEBUG: 0 }, }, { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 690d98caf1..f1c13959fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -336,7 +336,10 @@ jobs: run: deno run --allow-write --allow-read --allow-run=git ./tools/node_compat/setup.ts --check - name: Build debug if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.job == ''test'' && matrix.profile == ''debug'')' - run: cargo build --locked --all-targets + run: |- + df -h + cargo build --locked --all-targets + df -h env: CARGO_PROFILE_DEV_DEBUG: 0 - name: Build release