File tree Expand file tree Collapse file tree 4 files changed +41
-6
lines changed
Expand file tree Collapse file tree 4 files changed +41
-6
lines changed Original file line number Diff line number Diff line change 2727 uses : ' actions/checkout@v4'
2828
2929 - name : Build
30- run : sudo -E ./make macos_amd64
30+ run : |
31+ sudo -E ./make macos_amd64
32+ sudo mv output/alpine_uefi_bootable-x86_64.img.zst output/bootable-amd64.img.zst
33+ sudo mv output/alpine_uefi_bootable-x86_64.img.zst.sha256sum output/bootable-amd64.img.zst.sha256sum
34+ - name : Upload artifact
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : bootable-amd64.img.zst
38+ path : |
39+ output/bootable-amd64.img.zst
40+ output/bootable-amd64.img.zst.sha256sum
41+ if-no-files-found : error
42+ overwrite : true
Original file line number Diff line number Diff line change 2828 uses : ' actions/checkout@v4'
2929
3030 - name : Build
31- run : sudo -E ./make macos_arm64
31+ run : |
32+ sudo -E ./make macos_arm64
33+ sudo mv output/alpine_uefi_bootable-arm64.img.zst output/bootable-arm64.img.zst
34+ sudo mv output/alpine_uefi_bootable-arm64.img.zst.sha256sum output/bootable-arm64.img.zst.sha256sum
35+ - name : Upload artifact
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : bootable-arm64.img.zst
39+ path : |
40+ output/bootable-arm64.img.zst
41+ output/bootable-arm64.img.zst.sha256sum
42+ if-no-files-found : error
43+ overwrite : true
Original file line number Diff line number Diff line change 1919 uses : ' actions/checkout@v4'
2020
2121 - name : Build
22- run : sudo -E ./make wsl2_amd64
22+ run : |
23+ sudo -E ./make wsl2_amd64
24+ - name : Upload artifact
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : rootfs-amd64.zst
28+ path : |
29+ output/rootfs-amd64.zst
30+ output/rootfs-amd64.zst.sha256sum
31+ if-no-files-found : error
32+ overwrite : true
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ rootfs_dir="$output/rootfs_amd64"
4040profile_name=" $( basename " ${target_profile:? } " ) "
4141# artifactory_file is the rootfs-amd64.zst used to import into wsl2
4242artifactory_file=" $output /rootfs-amd64" # without zstd
43+ artifactory_zstd=" $artifactory_file .zst"
4344if [[ $BUILD_TYPE == cross ]]; then
4445 proot_args+=" --qemu=$output /qemu_bins/static_qemu/bin/qemu-aarch64"
4546fi
@@ -55,8 +56,8 @@ pack_rootfs() {
5556 cd " $rootfs_dir "
5657 tar -cvf " $artifactory_file " . > /dev/null
5758 cd " $output "
58- zstd --force -16 " $artifactory_file "
59- sha256sum " $artifactory_file " | tee " $artifactory_file .sha256sum"
59+ zstd --stdout -- force -16 " $artifactory_file " > " $artifactory_zstd "
60+ sha256sum " $artifactory_zstd " | tee " $artifactory_zstd .sha256sum"
6061}
6162
6263bootstrap_alpine () {
@@ -65,7 +66,7 @@ bootstrap_alpine() {
6566
6667 echo " unpack rootfs"
6768 sudo mkdir -p " $rootfs_dir "
68- tar -xvf " $rootfs_file " -C " $rootfs_dir "
69+ tar -xvf " $rootfs_file " -C " $rootfs_dir " > /dev/null
6970
7071 echo " install pkgs into rootfs"
7172 pkgs=$( echo " $preinstalled_packages " | xargs)
You can’t perform that action at this time.
0 commit comments