Skip to content

Commit

Permalink
fix(ci/riscv): Use sudo to remove system-wide cache
Browse files Browse the repository at this point in the history
  • Loading branch information
xdoardo committed Oct 21, 2024
1 parent 6113501 commit 339332d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ jobs:
ENABLE_LLVM: 0
- name: Clean cache
run: |
rm -r /root/.cargo/registry && rm -r target/riscv64gc-unknown-linux-gnu/release/build && rm -r target/riscv64gc-unknown-linux-gnu/release/deps
sudo rm -r /root/.cargo/registry && rm -r target/riscv64gc-unknown-linux-gnu/release/build && rm -r target/riscv64gc-unknown-linux-gnu/release/deps
env:
CROSS_DOCKER_IN_DOCKER: true
CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo
Expand All @@ -624,7 +624,7 @@ jobs:
TARGET_DIR: target/riscv64gc-unknown-linux-gnu/release
- name: Clean cache
run: |
rm -r /root/.cargo/registry && rm -r target/riscv64gc-unknown-linux-gnu/release/build && rm -r target/riscv64gc-unknown-linux-gnu/release/deps
sudo rm -r /root/.cargo/registry && rm -r target/riscv64gc-unknown-linux-gnu/release/build && rm -r target/riscv64gc-unknown-linux-gnu/release/deps
env:
CROSS_DOCKER_IN_DOCKER: true
CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo
Expand Down

0 comments on commit 339332d

Please sign in to comment.