From e8f62d6da2c7011f63d9e6154f835a40c6aff538 Mon Sep 17 00:00:00 2001 From: xxchan Date: Mon, 11 Sep 2023 10:22:12 +0800 Subject: [PATCH] ci: fix disk out of space for GHA (#12192) --- .github/workflows/nightly-rust.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-rust.yml b/.github/workflows/nightly-rust.yml index ab3cc0302cce..e6afb6970dae 100644 --- a/.github/workflows/nightly-rust.yml +++ b/.github/workflows/nightly-rust.yml @@ -11,6 +11,14 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - uses: actions/checkout@v3 - name: Setup Rust toolchain run: | @@ -18,6 +26,8 @@ jobs: rustup update nightly - name: Install dependencies run: sudo apt-get update && sudo apt-get install -y make build-essential cmake protobuf-compiler curl openssl libssl-dev libsasl2-dev libcurl4-openssl-dev pkg-config postgresql-client tmux lld - - name: cargo build + - name: cargo check run: | - cargo build + export CARGO_INCREMENTAL=0 + export CARGO_PROFILE_DEV_DEBUG=false + cargo check