diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8521a9d..76f9c7b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.gitignore b/.gitignore index 4dd0bd08..6c3ac2f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ !.gitkeep .vscode -arpl.img* +arpl.img +arpl.vmdk *.zip .buildroot test.sh diff --git a/VERSION b/VERSION index 28fe640f..24307af3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1-alpha6 +0.1-alpha7 diff --git a/img-gen.sh b/img-gen.sh index 2054c277..d194160b 100755 --- a/img-gen.sh +++ b/img-gen.sh @@ -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