mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Adding vmdk image
This commit is contained in:
parent
69008eeebe
commit
9eb1087632
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -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
3
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
!.gitkeep
|
!.gitkeep
|
||||||
.vscode
|
.vscode
|
||||||
arpl.img*
|
arpl.img
|
||||||
|
arpl.vmdk
|
||||||
*.zip
|
*.zip
|
||||||
.buildroot
|
.buildroot
|
||||||
test.sh
|
test.sh
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user