Adding vmdk image

This commit is contained in:
Fabio Belavenuto 2022-07-06 21:45:55 -03:00
parent 69008eeebe
commit 9eb1087632
4 changed files with 16 additions and 7 deletions

View File

@ -30,8 +30,8 @@ jobs:
path: .buildroot
key: ${{ runner.os }}-${{ hashFiles('files/configs/arpl_defconfig') }}
# Install missing buildroot dependency
- name: Install dependency
# Install dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libelf-dev
@ -92,18 +92,23 @@ jobs:
echo "Building..."
make BR2_EXTERNAL=../external
cd -
qemu-img convert -O vmdk arpl.img arpl.vmdk
# Zip image
- name: Pack
shell: bash
run: zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
run: |
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl.vmdk
# Upload artifact
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Image to burn
path: arpl.img
name: Images
path: |
arpl.img
arpl.vmdk
retention-days: 1
# Publish a release if is a tag
@ -113,5 +118,6 @@ jobs:
with:
files: |
arpl-${{ steps.build.outputs.VERSION }}.img.zip
arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip
.buildroot/output/images/bzImage
.buildroot/output/images/rootfs.cpio.xz

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
!.gitkeep
.vscode
arpl.img*
arpl.img
arpl.vmdk
*.zip
.buildroot
test.sh

View File

@ -1 +1 @@
0.1-alpha6
0.1-alpha7

View File

@ -54,4 +54,6 @@ make BR2_EXTERNAL=../external
cd -
rm -f *.zip
zip -9 "arpl-${VERSION}.img.zip" arpl.img
qemu-img convert -O vmdk arpl.img arpl.vmdk
zip -9 "arpl-${VERSION}.vmdk.zip" arpl.vmdk
[ -x test.sh ] && ./test.sh