refactor: replace hexdump with xxd for magic byte verification in release workflows
This commit is contained in:
1 parent
11bbfb7db6
commit
e1c604ee8d
2 files changed
+10
-4
No files matched your search
@@ -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:"
|
||||
|
||||
@@ -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:"
|
||||
|
||||
Reference in new issue
Block a user