From a5ea984460ece90ea3fd0e1c99acd25c408b8c4a Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 13 Dec 2022 13:12:35 +0800 Subject: [PATCH] CI: Cleanup disk before running tests --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 922418a50..96bd69307 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -119,6 +119,11 @@ jobs: env: RUST_BACKTRACE: '1' steps: + - name: Cleanup Disk + if: ${{ !startsWith(matrix.os, 'windows') }} + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc - uses: actions/checkout@v3 - uses: conda-incubator/setup-miniconda@v2 with: @@ -170,10 +175,9 @@ jobs: if: contains(matrix.python-version, 'pypy') run: echo "MATURIN_TEST_PYTHON=pypy3" >> $GITHUB_ENV - name: cargo test + env: + RUSTFLAGS: "-C debuginfo=0" # save disk space run: cargo nextest run --features password-storage - - name: free up disk space - shell: bash - run: rm -rf test-crates/venvs test-crates/targets - name: test cross compiling with zig shell: bash run: |