logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 591959924fa8de282f3d11983de6cf19c50f5af0
parent 2c6ac949746072f0ee4e396a40a58ab09fc39df6
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date:   Mon, 25 Dec 2023 11:04:18 +0100

Re-acquire missing sources before each CI pass

Diffstat:

M.github/workflows/bwrap.yml34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/bwrap.yml b/.github/workflows/bwrap.yml @@ -78,6 +78,23 @@ jobs: name: internal_pass1_image - name: Extract pass1_image run: tar -xf pass1_image.tar + - name: Query cache for sources + id: cache + uses: actions/cache/restore@v3 + with: + path: | + externals/distfiles + key: cache-${{ hashFiles('steps/*/sources') }} + - name: Get sources + if: steps.cache.outputs.cache-hit != 'true' + run: ./download-distfiles.sh + - name: Cache sources + if: steps.cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v3 + with: + path: | + externals/distfiles + key: cache-${{ hashFiles('steps/*/sources') }} - name: Run bootstrap run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass2 - name: Archive created packages @@ -113,6 +130,23 @@ jobs: with: name: internal_packages_pass2 path: tmp/externals/repo-preseeded/ + - name: Query cache for sources + id: cache + uses: actions/cache/restore@v3 + with: + path: | + externals/distfiles + key: cache-${{ hashFiles('steps/*/sources') }} + - name: Get sources + if: steps.cache.outputs.cache-hit != 'true' + run: ./download-distfiles.sh + - name: Cache sources + if: steps.cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v3 + with: + path: | + externals/distfiles + key: cache-${{ hashFiles('steps/*/sources') }} - name: Run bootstrap run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass3 - name: Archive created packages