Skip to content

Commit

Permalink
Fixed BASE name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jie Chen committed Jan 17, 2025
1 parent 5336b75 commit 6a59946
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,24 @@ jobs:
- name: Create a new rootfs.vhd containing the local Linux-GCS
run: |
# Update package on Ubuntu
sudo apt-get update
sudo apt-get install -y make gcc binutils linux-headers-generic libarchive-tools \
btrfs-progs libseccomp-dev pkg-config cpio
chmod a+x ${{ github.workspace }}/hack/catcpio.sh
# Find the full file name for rootfs tar
ROOTFS_TAR=$(ls ./rootfs-*.tar.gz | head -n 1)
echo "The full file name is $ROOTFS_TAR"
make clean
make BASE=./rootfs-*.tar.gz all
make BASE=$ROOTFS_TAR rootfs
- name: Copy newly created rootfs.vhd and initrd.img
run: |
mv ./rootfs_*.vhd ${{ env.LINUX_BOOT_FILES_PATH }}/
mv ./initrd.img ${{ env.LINUX_BOOT_FILES_PATH }}/
mv ./output/rootfs_*.vhd ${{ env.LINUX_BOOT_FILES_PATH }}/
mv ./output/initrd.img ${{ env.LINUX_BOOT_FILES_PATH }}/
# This is a workaround to overcome the limitation of actions/upload-artifact@v4.
# See https://github.com/actions/upload-artifact/tree/v4/?tab=readme-ov-file#permission-loss.
Expand Down

0 comments on commit 6a59946

Please sign in to comment.