build: Add step "Fix time stamps into restored dirs"

This commit is contained in:
remittor
2026-01-02 16:44:12 +03:00
parent 8f6a81ecd2
commit 510a31e7ec

View File

@@ -229,6 +229,17 @@ jobs:
staging_dir/host staging_dir/host
build_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 - name: Inspect restored host tools
if: github.event.inputs.use_cache == 'true' if: github.event.inputs.use_cache == 'true'
run: | run: |
@@ -300,6 +311,17 @@ jobs:
make -j$(nproc) download make -j$(nproc) download
echo "status=success" >> $GITHUB_OUTPUT 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 - name: Build tools and toolchain
id: tools id: tools
if: ${{ steps.configure.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }} if: ${{ steps.configure.outputs.status == 'success' && github.event.inputs.fake_build != 'true' }}