From f6e4b5bc4ab9dc3e3051dbea4fdfbc902ec06f5f Mon Sep 17 00:00:00 2001 From: Liam Wilson Date: Fri, 12 Jan 2024 06:02:03 +0000 Subject: [PATCH] check sha256sum for tcc_bootstrap_alt-0.1 outpit artifact --- steps/tcc_bootstrap_alt-0.1/pass1.kaem | 10 ++++++++++ .../tcc_bootstrap_alt-0.1.x86.checksums | 1 + 2 files changed, 11 insertions(+) create mode 100644 steps/tcc_bootstrap_alt-0.1/tcc_bootstrap_alt-0.1.x86.checksums diff --git a/steps/tcc_bootstrap_alt-0.1/pass1.kaem b/steps/tcc_bootstrap_alt-0.1/pass1.kaem index d4413b63..1732dc73 100644 --- a/steps/tcc_bootstrap_alt-0.1/pass1.kaem +++ b/steps/tcc_bootstrap_alt-0.1/pass1.kaem @@ -27,3 +27,13 @@ chmod 755 ./x86/artifact/kaem-optional-seed kaem --file kaem.x86 cp artifacts/tcc_27_boot_static.exe /usr/bin/tcc-boot0 chmod 755 /usr/bin/tcc-boot0 + +# Checksums +if match x${UPDATE_CHECKSUMS} xTrue; then + sha256sum -o ${pkg}.${ARCH}.checksums \ + /usr/bin/tcc-boot0 + + cp ${pkg}.checksums ${SRCDIR} +else + sha256sum -c ${pkg}.${ARCH}.checksums +fi diff --git a/steps/tcc_bootstrap_alt-0.1/tcc_bootstrap_alt-0.1.x86.checksums b/steps/tcc_bootstrap_alt-0.1/tcc_bootstrap_alt-0.1.x86.checksums new file mode 100644 index 00000000..d08ca471 --- /dev/null +++ b/steps/tcc_bootstrap_alt-0.1/tcc_bootstrap_alt-0.1.x86.checksums @@ -0,0 +1 @@ +26268bc6b96b48e6d25e08abce0ce1ecaebb58c99f898f35a485ec696117f1ca /usr/bin/tcc-boot0