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 <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-04 17:40:58 +10:00
parent cc92c2c4b6
commit 140d3df8bd
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -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/