From 140d3df8bd73833f3a8245bd0d95c681ecce180b Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 4 Aug 2022 17:40:58 +1000 Subject: [PATCH] Fix integration test: Set `CARGO_HOME` instead of `rm -rf $HOME/.cargo` The later would also delete the cmd `cargo`. Signed-off-by: Jiahao XU --- .github/workflows/integration.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 58faa4c6..a132dd31 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -50,7 +50,7 @@ jobs: - name: Test shell: bash - run: | - rm -rf "$HOME/.cargo" - ./ci-scripts/tests.sh ${{ matrix.bin }} ${{ runner.os }} + run: ./ci-scripts/tests.sh ${{ matrix.bin }} ${{ runner.os }} + env: + CARGO_HOME: /tmp/cargo-home-for-test/