Skip to content

Commit

Permalink
CI: Cleanup disk before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 13, 2022
1 parent 7d19d79 commit a5ea984
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit a5ea984

Please sign in to comment.