This commit is contained in:
Liam Wilson 2024-03-08 15:55:50 -05:00 committed by GitHub
commit db1b7517d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 249 additions and 12 deletions

View file

@ -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