From 2b935425f67f84366feef5c4e1b0f3830b3cbd11 Mon Sep 17 00:00:00 2001 From: easterNday <849919718@qq.com> Date: Tue, 2 Jan 2024 17:31:49 +0800 Subject: [PATCH] chore(twrp): switch ways to increase space, close #6 --- .github/workflows/twrp.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index ab6f933c7..53d57ed47 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -67,9 +67,14 @@ jobs: steps: # Clean up the workspace and make room for compilation - name: ♈ Cleanup - uses: rokibhasansagar/slimhub_actions@main + uses: easimon/maximize-build-space@master with: - retain: "java_tools,android_sdk" + root-reserve-mb: 512 + swap-size-mb: 12288 + remove-dotnet: "true" + remove-haskell: "true" + remove-codeql: "true" + remove-docker-images: "true" - name: ♉ Prepare the build environment run: | @@ -93,11 +98,6 @@ jobs: run: | git clone --recursive --depth=1 -j $(nproc) --branch ${{ env.DEVICE_BRANCH }} ${{ env.DEVICE_REPO }} ${{ env.DEVICE_LOCATION }} - - name: ♌ Set Swap Space - uses: pierotofy/set-swap-space@master - with: - swap-size-gb: 12 - - name: ♍ Build it working-directory: ${{ env.OF_LOCATION }} continue-on-error: true