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

3
.gitignore vendored
View File

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

View File

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

View File

@ -54,4 +54,6 @@ make BR2_EXTERNAL=../external
cd - cd -
rm -f *.zip rm -f *.zip
zip -9 "arpl-${VERSION}.img.zip" arpl.img 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 [ -x test.sh ] && ./test.sh