File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 18
18
- uses : actions/upload-artifact@v2
19
19
with :
20
20
name : Raw Image
21
- path : build/FuzzyOS.raw
21
+ path : build/FuzzyOS_raw.zip
22
22
23
23
- uses : actions/upload-artifact@v2
24
24
with :
Original file line number Diff line number Diff line change 28
28
utcOffset : " +00:00"
29
29
30
30
- name : Create Release
31
+ id : create_release
31
32
uses : actions/create-release@v1
32
33
env :
33
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
45
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
46
with :
46
47
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
50
51
51
52
- name : Upload Virtual Box Image
52
53
uses : actions/upload-release-asset@v1
Original file line number Diff line number Diff line change @@ -47,9 +47,10 @@ rm_static = $(BUILD_REALMODE)/static_library
47
47
48
48
# OS images
49
49
image_raw = $(BUILD_DIR ) /FuzzyOS.raw
50
+ image_raw_zip = $(BUILD_DIR ) /FuzzyOS_raw.zip
50
51
image_vmdk = $(BUILD_DIR ) /FuzzyOS.vmdk
51
52
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 )
53
54
54
55
# Kernel
55
56
kernel_core = $(BUILD_DIR ) /kernel/core
@@ -124,6 +125,9 @@ $(image_raw): $(bt_stage1) $(rm_static) $(bt_stage2) $(kernel_core) $(BUILD_DIR)
124
125
truncate --size=128M $@ # sparse file
125
126
@echo " Image Size : $$ (stat -c %s $@ ) byte(s)"
126
127
128
+ $(image_raw_zip ) : $(image_raw )
129
+ zip $@ $<
130
+
127
131
$(image_vmdk ) : $(image_raw )
128
132
qemu-img convert -O vmdk $< $@
129
133
You can’t perform that action at this time.
0 commit comments