From 510a31e7ec2e7725d45244d8346e2d4cd801baa6 Mon Sep 17 00:00:00 2001 From: remittor Date: Fri, 2 Jan 2026 16:44:12 +0300 Subject: [PATCH] build: Add step "Fix time stamps into restored dirs" --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f63c5b..06833a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -229,6 +229,17 @@ jobs: staging_dir/host build_dir/host + - name: Fix time stamps into restored dirs + if: github.event.inputs.use_cache == 'true' && steps.tools_cache_restore.outputs.cache-hit == 'true' + run: | + touch staging_dir/host/.prepared + touch staging_dir/host/.prereq-build + touch staging_dir/host/stamp/.* 2>/dev/null + find build_dir/host -name ".prepared*" -exec touch {} + + find build_dir/host -name ".configured" -exec touch {} + + find build_dir/host -name ".built" -exec touch {} + + touch build_dir/stamp + - name: Inspect restored host tools if: github.event.inputs.use_cache == 'true' run: | @@ -300,6 +311,17 @@ jobs: make -j$(nproc) download echo "status=success" >> $GITHUB_OUTPUT + - name: Fix time stamps into restored dirs + if: github.event.inputs.use_cache == 'true' && steps.tools_cache_restore.outputs.cache-hit == 'true' + run: | + touch staging_dir/host/.prepared + touch staging_dir/host/.prereq-build + touch staging_dir/host/stamp/.* 2>/dev/null + find build_dir/host -name ".prepared*" -exec touch {} + + find build_dir/host -name ".configured" -exec touch {} + + find build_dir/host -name ".built" -exec touch {} + + touch build_dir/stamp + - name: Build tools and toolchain id: tools if: ${{ steps.configure.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}