From f9298d24b98d336e5c9ff1599fb2965cd8086869 Mon Sep 17 00:00:00 2001 From: Gzxhwq Date: Sat, 2 Nov 2024 12:48:12 +0800 Subject: [PATCH] Update build-openwrt.yml --- .github/workflows/build-openwrt.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build-openwrt.yml b/.github/workflows/build-openwrt.yml index be1080d..b55f199 100644 --- a/.github/workflows/build-openwrt.yml +++ b/.github/workflows/build-openwrt.yml @@ -89,6 +89,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Free Disk Space Before Build + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/local/.ghcup + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo rm -rf /usr/local/lib/android/sdk/ndk + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf /usr/local/share/boost + sudo apt-get clean + echo "Disk space after cleanup:" + df -h + - name: Initialization environment env: DEBIAN_FRONTEND: noninteractive @@ -224,3 +238,17 @@ jobs: delete_tags: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Free Disk Space After Build + run: | + echo "Disk space before post-build cleanup:" + df -h + sudo rm -rf /usr/local/.ghcup + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo rm -rf /usr/local/lib/android/sdk/ndk + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf /usr/local/share/boost + sudo apt-get clean + echo "Disk space after post-build cleanup:" + df -h \ No newline at end of file