From 04990a0fb81f494abb37b265b6a0a462adcddabc Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 27 Sep 2024 22:05:59 +0200 Subject: [PATCH] build: update Signed-off-by: AuxXxilium --- .github/workflows/autobuild.yml | 13 ++++++++++--- .github/workflows/build.yml | 20 ++++++++++++++------ 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 0f5e4a27..87e274d9 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -127,8 +127,12 @@ jobs: cp -f files/p1/ARC-VERSION files/p3/ARC-VERSION cp -f files/p1/ARC-BRANCH files/p3/ARC-BRANCH cp -f files/p1/boot/grub/grub.cfg files/p3/grub.cfg - zip -9j update.zip -r "files/p3" + cd files/p3 + zip -9 update.zip -r . sha256sum update.zip >checksum.sha256 + mv update.zip ../ + mv checksum.sha256 ../ + cd - # Build incremental - name: Build Image X @@ -183,13 +187,16 @@ jobs: echo "Create Arc ova" convertova "${IMAGE_FILE}" "arc-next.ova" - # Zip update and generate checksum cp -f files/p1/ARC-VERSION files/p3/ARC-VERSION cp -f files/p1/ARC-BRANCH files/p3/ARC-BRANCH cp -f files/p1/boot/grub/grub.cfg files/p3/grub.cfg - zip -9j update-next.zip -r "files/p3" + cd files/p3 + zip -9 update-next.zip -r . sha256sum update-next.zip >checksum-next.sha256 + mv update-next.zip ../ + mv checksum-next.sha256 ../ + cd - # Zip image and generate checksum - name: Pack diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 766af5f8..8b8dc8a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -165,8 +165,12 @@ jobs: cp -f files/p1/ARC-VERSION files/p3/ARC-VERSION cp -f files/p1/ARC-BRANCH files/p3/ARC-BRANCH cp -f files/p1/boot/grub/grub.cfg files/p3/grub.cfg - zip -9j update.zip -r "files/p3" + cd files/p3 + zip -9 update.zip -r . sha256sum update.zip >checksum.sha256 + mv update.zip ../ + mv checksum.sha256 ../ + cd - # Build incremental - name: Build Image X @@ -226,8 +230,12 @@ jobs: cp -f files/p1/ARC-VERSION files/p3/ARC-VERSION cp -f files/p1/ARC-BRANCH files/p3/ARC-BRANCH cp -f files/p1/boot/grub/grub.cfg files/p3/grub.cfg - zip -9j update-next.zip -r "files/p3" + cd files/p3 + zip -9 update-next.zip -r . sha256sum update-next.zip >checksum-next.sha256 + mv update-next.zip ../ + mv checksum-next.sha256 ../ + cd - # Zip image and generate checksum - name: Pack @@ -277,8 +285,8 @@ jobs: Release: ${{ env.BUILD_TIME }} artifacts: | arc-*.zip - update.zip - update-next.zip - checksum.sha256 - checksum-next.sha256 + files/update.zip + files/update-next.zip + files/checksum.sha256 + files/checksum-next.sha256 check.update