diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index cafcfe9890..2a2ada3d10 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -173,14 +173,16 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - name: Delete Dotnet - run: find / -name "dotnet" -type d -exec rm -rf {} \; - - name: Delete Haskell - run: find / -name "ghc" -type d -exec rm -rf {} \; - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable + - name: Remove Dotnet (macOS) + if: runner.os == 'macOS' + run: rm -rf /usr/local/bin/dotnet + - name: Remove Dotnet & Haskell (Linux) + if: runner.os == 'Linux' + run: rm -rf /usr/share/dotnet && rm -rf /opt/ghc - name: Add nightly rustfmt and clippy run: rustup toolchain install nightly --component rustfmt --component clippy --allow-downgrade - name: Add no_std toolchain