Skip to content

Commit

Permalink
ci: spilt make rootfs tarball to prepare
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Mar 23, 2024
1 parent 484d19c commit 7145b54
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ jobs:
name: qemu-riscv64-static-ci
path: /usr/bin/qemu-riscv64-static

- name: Checkout Repo
uses: actions/checkout@v4
with:
path: 'mkimg-th1520' # TODO: make this name a global variable

- name: Make rootfs tarball
run: |
pushd mkimg-th1520
sudo -E ./mkrootfs.sh rootfs common_revyos_rootfs.tar.xz
popd
- uses: actions/upload-artifact@v3
with:
name: common_revyos_rootfs
path: common_revyos_rootfs.tar.xz

mkrootfs:
needs: prepare
strategy:
Expand Down Expand Up @@ -108,6 +124,7 @@ jobs:
sudo chmod a+x /usr/bin/qemu-riscv64-static
ls -al /usr/bin/qemu-riscv64-static
sudo dpkg-reconfigure binfmt-support
echo "USE_TARBALL=${ARTIFACTS_DIR}/common_revyos_rootfs/common_revyos_rootfs.tar.xz" >> $GITHUB_ENV
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down

0 comments on commit 7145b54

Please sign in to comment.