From e1c604ee8d8afdd06a9f5ac091073f06a3e8a550 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Thu, 20 Feb 2025 18:01:16 +0100 Subject: [PATCH] refactor: replace hexdump with xxd for magic byte verification in release workflows --- .github/workflows/providers/gitea-release.yml | 7 +++++-- .github/workflows/providers/github-release.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/providers/gitea-release.yml b/.github/workflows/providers/gitea-release.yml index 372c421..06deb7b 100644 --- a/.github/workflows/providers/gitea-release.yml +++ b/.github/workflows/providers/gitea-release.yml @@ -32,6 +32,9 @@ jobs: python -m pip install --upgrade pip pip install --upgrade platformio esptool + - name: Install xxd + run: sudo apt-get install xxd + - name: Build Firmware run: | pio run -e esp32dev_ota -t buildfs # Build SPIFFS @@ -65,9 +68,9 @@ jobs: # Verify magic bytes echo "Checking magic bytes:" echo "OTA binary first bytes:" - hexdump -C -n 16 filaman_ota.bin + xxd -l 16 filaman_ota.bin echo "Full binary first bytes:" - hexdump -C -n 16 filaman_full.bin + xxd -l 16 filaman_full.bin # Verify file sizes echo "File sizes:" diff --git a/.github/workflows/providers/github-release.yml b/.github/workflows/providers/github-release.yml index 387ed7a..b542551 100644 --- a/.github/workflows/providers/github-release.yml +++ b/.github/workflows/providers/github-release.yml @@ -21,6 +21,9 @@ jobs: python -m pip install --upgrade pip pip install --upgrade platformio esptool + - name: Install xxd + run: sudo apt-get install xxd + - name: Build Firmware run: | pio run -e esp32dev_ota -t buildfs # Build SPIFFS @@ -54,9 +57,9 @@ jobs: # Verify magic bytes echo "Checking magic bytes:" echo "OTA binary first bytes:" - hexdump -C -n 16 filaman_ota.bin + xxd -l 16 filaman_ota.bin echo "Full binary first bytes:" - hexdump -C -n 16 filaman_full.bin + xxd -l 16 filaman_full.bin # Verify file sizes echo "File sizes:"