From bd1fbbe21344e5da783b345a6b3d8416df1b025b Mon Sep 17 00:00:00 2001 From: hardfist Date: Sun, 8 Oct 2023 12:52:05 +0800 Subject: [PATCH] chore: try free disk for linux (#4287) chore: free linux disk --- .github/workflows/reusable-build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index c0a42654c06..1b82b74507f 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -27,7 +27,7 @@ on: required: true type: string profile: # Rust profile, "debug" or "release" - default: 'release' + default: "release" required: false type: string test: # Run tests? @@ -75,7 +75,11 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - + - name: free-disk-cache + if: ${{ contains(inputs.target, 'linux') }} + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false - name: Pnpm Cache uses: ./.github/actions/pnpm-cache with: @@ -166,7 +170,6 @@ jobs: SYSROOT=$(xcrun --sdk macosx --show-sdk-path); export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT"; RUST_TARGET=${{ inputs.target }} pnpm build:binding:${{ inputs.profile }} - - name: Upload artifact uses: actions/upload-artifact@v3 with: