mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-01-02 20:13:37 +05:00
build: Add step "Fix time stamps into restored dirs"
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -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' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user