From f122049f7f21a54e4a20829f214543c48fea6405 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:09:16 +0900 Subject: [PATCH] openbsd.yml: improve perf & sync disk space cleanup --- .github/workflows/openbsd.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openbsd.yml b/.github/workflows/openbsd.yml index 38a5a729b9e..285aa6b3fb7 100644 --- a/.github/workflows/openbsd.yml +++ b/.github/workflows/openbsd.yml @@ -134,6 +134,12 @@ jobs: - uses: actions/checkout@v6 with: persist-credentials: false + - name: Avoid no space left on device # shared with guest? + shell: bash + run: | + mkdir /tmp/empty + sudo rsync -a --delete /tmp/empty/ /usr/share/dotnet/ + sudo rsync -a --delete /tmp/empty/ /usr/local/lib/android/ - name: Prepare, build and test uses: vmactions/openbsd-vm@v1 with: @@ -145,10 +151,14 @@ jobs: prepare: | # Clean up disk space before installing packages df -h - rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* & + mkdir -p empty + rsync -a --delete empty/ /usr/share/relink/ + rsync -a --delete empty/ /usr/X11R6/ + rsync -a --delete empty/ /usr/share/doc/ + rsync -a --delete empty/ /usr/share/man/ pkg_add curl gmake sudo-- jq rust llvm-- # Clean up package cache after installation - pkg_delete -a & + pkg_delete -a df -h run: | ## Prepare, build, and test