use single workflow instead

This commit is contained in:
ading2210 2024-01-25 22:33:27 +00:00
parent 91f719d812
commit 9a4b78d881
2 changed files with 1 additions and 52 deletions

View File

@ -10,30 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: wait for rootfs build to finish
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.ref }}
running-workflow-name: build-rootfs
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: download repo
uses: actions/checkout@v4
- name: download rootfs
uses: actions/download-artifact@v4
with:
name: rootfs_tar
path: data/rootfs.tar.gz
- name: extract rootfs
run: |
sudo mkdir -p data/rootfs
sudo tar -xvf data/rootfs.tar.gz -C data/rootfs
- name: run build
run: sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} compress_img=1 rootfs_dir=./data/rootfs
run: sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} compress_img=1
- name: upload img
uses: actions/upload-artifact@v4

View File

@ -1,32 +0,0 @@
name: build-rootfs
run-name: Build the base Debian rootfs
on: [push]
defaults:
run:
shell: bash
working-directory: ./
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: download repo
uses: actions/checkout@v4
- name: install deps
run: |
sudo apt-get install debootstrap coreutils -y
- name: run build
run: sudo DEBUG=1 ./build_rootfs.sh data/rootfs bookworm hostname=shimboot root_passwd=root username=user user_passwd=user
- name: archive rootfs
run: sudo tar -vcf data/rootfs.tar.gz -C data/rootfs ./
- name: upload rootfs
uses: actions/upload-artifact@v4
with:
name: rootfs_tar
path: data/rootfs.tar.gz
compression-level: 0