From 8739c519959aed62ed5c53b822caf28437bfcf94 Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 31 Dec 2025 22:52:42 +0300 Subject: [PATCH] build: Disable step "Cache toolchain" and fix host dir --- .github/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24a1c57..0a8b693 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -259,9 +259,12 @@ jobs: - name: Prepare for use cache of tools and toolchain run: | echo "G_TARGET_ARCH = $G_TARGET_ARCH" - rm -rf staging_dir/ - rm -rf build_dir/ - + mkdir -p staging_dir/host + rm -rf /tmp/staging-host + mkdir -p /tmp/staging-host + cp -a staging_dir/host/* /tmp/staging-host/ + rm -rf staging_dir/host/* + - name: Cache host tools uses: actions/cache@v4 with: @@ -272,6 +275,7 @@ jobs: host-tools-${{ runner.os }}- - name: Cache toolchain + if: false uses: actions/cache@v4 with: path: staging_dir/toolchain-* @@ -280,7 +284,13 @@ jobs: restore-keys: | toolchain-${{ env.G_TARGET_ARCH }}- + - name: Restore saved host staging + run: | + cp -af /tmp/staging-host/* staging_dir/host + rm -rf /tmp/staging-host + - name: Increase swap to 16G + if: false run: | free -h sudo swapoff -a || true