From 6446c095767b247b66cd4f17a1f91aaa3b2342a4 Mon Sep 17 00:00:00 2001 From: Liam Wilson Date: Sat, 13 Jan 2024 00:20:13 +0000 Subject: [PATCH] add alt_pass1 to ci --- .github/workflows/bwrap.yml | 48 ++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bwrap.yml b/.github/workflows/bwrap.yml index bb8e925b..882ade15 100644 --- a/.github/workflows/bwrap.yml +++ b/.github/workflows/bwrap.yml @@ -12,6 +12,52 @@ on: - master jobs: + alt_pass1: + name: Alt Run up to Linux build under bubblewrap + runs-on: ubuntu-latest + steps: + - name: Install bubblewrap + run: sudo apt install bubblewrap + - name: Checkout repo + uses: actions/checkout@v3 + with: + submodules: recursive + # There is a strange bug(?) in nongnu, when you clone a git repository + # against a commit != HEAD with depth=1, it errors out. + fetch-depth: 0 + - name: Query cache for sources + id: cache + uses: actions/cache/restore@v3 + with: + path: | + 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: | + distfiles + key: cache-${{ hashFiles('steps/*/sources') }} + - name: Run bootstrap + run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass1 --tcc_bootstrap_alt + - name: Archive created packages + if: failure() # archive failed builds progress + uses: actions/upload-artifact@v3 + with: + name: alt_packages + path: target/external/repo/** + - name: Tar alt_pass1 image + run: tar -cf alt_pass1_image.tar target + - name: Archive alt_pass1_image + uses: actions/upload-artifact@v3 + with: + name: internal_alt_pass1_image + path: alt_pass1_image.tar + pass1: name: Run up to Linux build under bubblewrap runs-on: ubuntu-latest @@ -43,7 +89,7 @@ jobs: distfiles key: cache-${{ hashFiles('steps/*/sources') }} - name: Run bootstrap - run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass1 --tcc_bootstrap_alt + run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass1 - name: Archive created packages if: failure() # archive failed builds progress uses: actions/upload-artifact@v3