From 6400028abf121067ca83916370ce605406af15c5 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Tue, 5 Apr 2022 12:13:51 -0400 Subject: [PATCH 1/2] attempt to have more verbose linker output --- .cargo/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config b/.cargo/config index a721b8092b1..4480ef433da 100644 --- a/.cargo/config +++ b/.cargo/config @@ -6,3 +6,8 @@ # [build] rustdocflags = "--document-private-items" + +[target.x86_64-unknown-linux-gnu] +# Attempt to get more verbose output from the linker in the event that linking +# fails. +rustflags = ["-C", "link-args=-Wl,-V"] From eb9cd79e09ef202893adb5a3d7a8a9cebc522d62 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Tue, 5 Apr 2022 15:17:59 -0400 Subject: [PATCH 2/2] attempt to free up more space --- .github/workflows/rust.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5b66dfe60b5..36328834c8d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -104,8 +104,26 @@ jobs: if: ${{ github.ref != 'refs/heads/main' }} - name: Report cargo version run: cargo --version - - name: Report disk space - run: df -h . + - name: Remove unnecessary software + run: | + echo "Disk space:" + df -h + + if [ -d "/usr/share/dotnet" ]; then + echo "Removing dotnet" + sudo rm -rf /usr/share/dotnet + fi + if [ -d "/usr/local/lib/android" ]; then + echo "Removing android" + sudo rm -rf /usr/local/lib/android + fi + if [ -d "/opt/ghc" ]; then + echo "Removing haskell" + sudo rm -rf /opt/ghc + fi + + echo "Disk space:" + df -h - name: Configure GitHub cache for CockroachDB binaries id: cache-cockroachdb # actions/cache@v2.1.4