Update CI workflows to match changes from simplify
This commit is contained in:
parent
e9787b55c8
commit
2823e16325
|
@ -12,8 +12,8 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sysa:
|
pass1:
|
||||||
name: Run sysa under bubblewrap
|
name: Run up to Linux build under bubblewrap
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install bubblewrap
|
- name: Install bubblewrap
|
||||||
|
@ -30,9 +30,8 @@ jobs:
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
sysa/distfiles
|
externals/distfiles
|
||||||
sysc/distfiles
|
key: cache-${{ hashFiles('steps/*/sources') }}
|
||||||
key: cache-${{ hashFiles('sys*/*/sources') }}
|
|
||||||
- name: Get sources
|
- name: Get sources
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: ./download-distfiles.sh
|
run: ./download-distfiles.sh
|
||||||
|
@ -41,9 +40,8 @@ jobs:
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
sysa/distfiles
|
externals/distfiles
|
||||||
sysc/distfiles
|
key: cache-${{ hashFiles('steps/*/sources') }}
|
||||||
key: cache-${{ hashFiles('sys*/*/sources') }}
|
|
||||||
- name: Run bootstrap
|
- name: Run bootstrap
|
||||||
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass1
|
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass1
|
||||||
- name: Archive created packages
|
- name: Archive created packages
|
||||||
|
@ -51,18 +49,18 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: packages
|
name: packages
|
||||||
path: tmp/sysa/usr/src/repo/**
|
path: tmp/external/repo/**
|
||||||
- name: Tar sysc_image
|
- name: Tar pass1 image
|
||||||
run: tar -cf sysc_image.tar tmp/sysa/sysc_image/
|
run: tar -cf pass1_image.tar tmp
|
||||||
- name: Archive sysc_image
|
- name: Archive pass1_image
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: internal_sysc_image
|
name: internal_pass1_image
|
||||||
path: sysc_image.tar
|
path: pass1_image.tar
|
||||||
|
|
||||||
sysc1:
|
pass2:
|
||||||
name: Run sysc (part 1) under bubblewrap
|
name: Run up to Python bootstrap under bubblewrap
|
||||||
needs: sysa
|
needs: pass1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install bubblewrap
|
- name: Install bubblewrap
|
||||||
|
@ -74,24 +72,24 @@ jobs:
|
||||||
# There is a strange bug(?) in nongnu, when you clone a git repository
|
# There is a strange bug(?) in nongnu, when you clone a git repository
|
||||||
# against a commit != HEAD with depth=1, it errors out.
|
# against a commit != HEAD with depth=1, it errors out.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get sysc_image
|
- name: Get pass1_image
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: internal_sysc_image
|
name: internal_pass1_image
|
||||||
- name: Extract sysc_image
|
- name: Extract pass1_image
|
||||||
run: tar -xf sysc_image.tar
|
run: tar -xf pass1_image.tar
|
||||||
- name: Run bootstrap
|
- name: Run bootstrap
|
||||||
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass2
|
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass2
|
||||||
- name: Archive created packages
|
- name: Archive created packages
|
||||||
if: always() # archive failed builds progress
|
if: always() # archive failed builds progress
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: internal_packages_sysc1
|
name: internal_packages_pass2
|
||||||
path: tmp/sysa/sysc_image/usr/src/repo/**
|
path: tmp/externals/repo/**
|
||||||
|
|
||||||
sysc2:
|
pass3:
|
||||||
name: Run sysc (part 2) under bubblewrap
|
name: Run remaining builds under bubblewrap
|
||||||
needs: sysc1
|
needs: pass2
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install bubblewrap
|
- name: Install bubblewrap
|
||||||
|
@ -103,18 +101,18 @@ jobs:
|
||||||
# There is a strange bug(?) in nongnu, when you clone a git repository
|
# There is a strange bug(?) in nongnu, when you clone a git repository
|
||||||
# against a commit != HEAD with depth=1, it errors out.
|
# against a commit != HEAD with depth=1, it errors out.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get sysc_image
|
- name: Get pass1_image
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: internal_sysc_image
|
name: internal_pass1_image
|
||||||
- name: Extract sysc_image
|
- name: Extract pass1_image
|
||||||
run: tar -xf sysc_image.tar
|
run: tar -xf pass1_image.tar
|
||||||
# By doing this, all packages that have already been compiled will come from the preseed.
|
# By doing this, all packages that have already been compiled will come from the preseed.
|
||||||
- name: Get packages repo progress
|
- name: Get packages repo progress
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: internal_packages_sysc1
|
name: internal_packages_pass2
|
||||||
path: tmp/sysa/sysc_image/usr/src/repo-preseeded/
|
path: tmp/externals/repo-preseeded/
|
||||||
- name: Run bootstrap
|
- name: Run bootstrap
|
||||||
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass3
|
run: ./rootfs.py --bwrap --external-sources --build-kernels --preserve --cores 2 --internal-ci pass3
|
||||||
- name: Archive created packages
|
- name: Archive created packages
|
||||||
|
@ -122,4 +120,4 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: packages
|
name: packages
|
||||||
path: tmp/sysa/sysc_image/usr/src/repo/**
|
path: tmp/externals/repo/**
|
||||||
|
|
Loading…
Reference in New Issue