Skip to content

Commit de284b1

Browse files
authored
refactor(builder): generates a compressed file via zstd's stdout (#56)
and automatically generate release notes
1 parent de03f9d commit de284b1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/build_macos-amd64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: softprops/action-gh-release@v2
4646
if: startsWith(github.ref, 'refs/tags/')
4747
with:
48-
body_path: output/bootable-amd64.img.zst.sha256sum
48+
generate_release_notes: true
4949
files: |
5050
output/bootable-amd64.img.zst
5151
output/bootable-amd64.img.zst.sha256sum

.github/workflows/build_macos-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: softprops/action-gh-release@v2
4646
if: startsWith(github.ref, 'refs/tags/')
4747
with:
48-
body_path: output/bootable-arm64.img.zst.sha256sum
48+
generate_release_notes: true
4949
files: |
5050
output/bootable-arm64.img.zst
5151
output/bootable-arm64.img.zst.sha256sum

.github/workflows/build_wsl2-amd64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: softprops/action-gh-release@v2
4444
if: startsWith(github.ref, 'refs/tags/')
4545
with:
46-
body_path: output/rootfs-amd64.zst.sha256sum
46+
generate_release_notes: true
4747
files: |
4848
output/rootfs-amd64.zst
4949
output/rootfs-amd64.zst.sha256sum

target_builder/macos_amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ umount_rootfs() {
137137
pack_rootfs() {
138138
echo "pack rootfs"
139139
cd "$output"
140-
zstd --force "$bootable_img"
140+
zstd --stdout --force "$bootable_img" > "$bootable_img_zst"
141141
sha256sum "$bootable_img_zst" | tee "$bootable_img_zst.sha256sum"
142142
cd "$workspace"
143143
}

target_builder/macos_arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ umount_rootfs() {
137137
pack_rootfs() {
138138
echo "pack rootfs"
139139
cd "$output"
140-
zstd --force "$bootable_img"
140+
zstd --stdout --force "$bootable_img" > "$bootable_img_zst"
141141
sha256sum "$bootable_img_zst" | tee "$bootable_img_zst.sha256sum"
142142
cd "$workspace"
143143
}

0 commit comments

Comments
 (0)