From 52ab8c02d602232421bb98d8b6404e9608a6086b Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Fri, 7 Jul 2023 17:24:03 +0200 Subject: [PATCH] Fix CI (#1354) * Update build_and_test.yml * Update build_and_test.yml --- .github/workflows/build_and_test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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