Skip to content

Commit f98919a

Browse files
committed
Upload FuzzyOS raw image as ZIP to make use of sparse file
1 parent 6c57958 commit f98919a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/upload-artifact@v2
1919
with:
2020
name: Raw Image
21-
path: build/FuzzyOS.raw
21+
path: build/FuzzyOS_raw.zip
2222

2323
- uses: actions/upload-artifact@v2
2424
with:

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
utcOffset: "+00:00"
2929

3030
- name: Create Release
31+
id: create_release
3132
uses: actions/create-release@v1
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -44,9 +45,9 @@ jobs:
4445
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4546
with:
4647
upload_url: ${{ steps.create_release.outputs.upload_url }}
47-
asset_path: build/FuzzyOS.raw
48-
asset_name: FuzzyOS.raw
49-
asset_content_type: application/octet-stream
48+
asset_path: build/FuzzyOS_raw.zip
49+
asset_name: FuzzyOS_raw.zip
50+
asset_content_type: application/zip
5051

5152
- name: Upload Virtual Box Image
5253
uses: actions/upload-release-asset@v1

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ rm_static = $(BUILD_REALMODE)/static_library
4747

4848
# OS images
4949
image_raw = $(BUILD_DIR)/FuzzyOS.raw
50+
image_raw_zip = $(BUILD_DIR)/FuzzyOS_raw.zip
5051
image_vmdk = $(BUILD_DIR)/FuzzyOS.vmdk
5152
image_vdi = $(BUILD_DIR)/FuzzyOS.vdi
52-
ALL_IMAGES = $(image_raw) $(image_vmdk) $(image_vdi)
53+
ALL_IMAGES = $(image_raw) $(image_raw_zip) $(image_vmdk) $(image_vdi)
5354

5455
# Kernel
5556
kernel_core = $(BUILD_DIR)/kernel/core
@@ -124,6 +125,9 @@ $(image_raw): $(bt_stage1) $(rm_static) $(bt_stage2) $(kernel_core) $(BUILD_DIR)
124125
truncate --size=128M $@ # sparse file
125126
@echo "Image Size : $$(stat -c %s $@) byte(s)"
126127

128+
$(image_raw_zip): $(image_raw)
129+
zip $@ $<
130+
127131
$(image_vmdk): $(image_raw)
128132
qemu-img convert -O vmdk $< $@
129133

0 commit comments

Comments
 (0)