From e12fe01117910a38548e12ac825458beb5ef0fb1 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Tue, 30 Dec 2025 08:28:12 +0900 Subject: [PATCH] openbsd.yml: Replace cargo related cache deletion --- .github/workflows/openbsd.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/openbsd.yml b/.github/workflows/openbsd.yml index 8bb91566a02..7a14240c828 100644 --- a/.github/workflows/openbsd.yml +++ b/.github/workflows/openbsd.yml @@ -47,7 +47,7 @@ jobs: prepare: | # Clean up disk space before installing packages df -h - rm -rf /usr/share/doc/* /usr/share/man/* /var/cache/* /tmp/* || true + rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* || : pkg_add curl sudo-- jq coreutils bash rust rust-clippy rust-rustfmt llvm-- # Clean up package cache after installation pkg_delete -a || true @@ -115,8 +115,6 @@ jobs: fi # Clean to avoid to rsync back the files and free up disk space cargo clean - # Additional cleanup to free disk space - rm -rf ~/.cargo/registry/cache ~/.cargo/git/db || true if [ -n "\${FAIL_ON_FAULT}" ] && [ -n "\${FAULT}" ]; then exit 1 ; fi EOF @@ -144,10 +142,10 @@ jobs: prepare: | # Clean up disk space before installing packages df -h - rm -rf /usr/share/doc/* /usr/share/man/* /var/cache/* /tmp/* || true + rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* || : pkg_add curl gmake sudo-- jq rust llvm-- # Clean up package cache after installation - pkg_delete -a || true + pkg_delete -a || : df -h run: | ## Prepare, build, and test @@ -197,8 +195,6 @@ jobs: cd "${WORKSPACE}" unset FAULT cargo build || FAULT=1 - # Clean build artifacts to save disk space before testing - rm -rf target/debug/build target/debug/incremental || true export PATH=~/.cargo/bin:${PATH} export RUST_BACKTRACE=1 export CARGO_TERM_COLOR=always @@ -216,6 +212,5 @@ jobs: # Clean to avoid to rsync back the files and free up disk space cargo clean # Additional cleanup to free disk space - rm -rf ~/.cargo/registry/cache ~/.cargo/git/db target/debug/deps target/release/deps || true if (test -n "\$FAULT"); then exit 1 ; fi EOF