Skip to content

Commit 056145d

Browse files
authored
Merge pull request #1497 from NickeZ/nickez/split-ci
CI: Rewrite to native github actions
2 parents fd99918 + 399d260 commit 056145d

File tree

13 files changed

+355
-255
lines changed

13 files changed

+355
-255
lines changed

.ci/build-container

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ci/check-hashes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
sha256sum --check bitbox-da14531-firmware.bin.sha256

.ci/check-unwanted-symbols

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
# Disallow some symbols in the final binary that we don't want.
7+
if arm-none-eabi-nm build/bin/firmware.elf | grep -q "float_to_decimal_common_shortest"; then
8+
echo "Rust fmt float formatting like {.1} adds significant binary bloat."
9+
echo "Use something simpler like (float*10).round() as u64, then format with util::decimal::format"
10+
exit 1
11+
fi
12+
if arm-none-eabi-nm build/bin/firmware.elf | grep -q "strftime"; then
13+
echo "strftime adds significant binary bloat. Use custom formatting like in `format_dateimte()`."
14+
exit 1
15+
fi
16+
if arm-none-eabi-nm build/bin/firmware.elf | grep -q "sha26sha512"; then
17+
# sha26sha512 is a mangled Rust symbol standing for `sha2::sha512`.
18+
# One can use rustfilt to see the demangled symbols:
19+
# cargo install rustfilt; arm-none-eabi-nm build/bin/firmware.elf | rustfilt
20+
echo "sha2::Sha512 adds significant binary bloat."
21+
echo "Only use it if there is no other sha512 impl available that is smaller."
22+
exit 1
23+
fi

.ci/ci

Lines changed: 0 additions & 96 deletions
This file was deleted.

.ci/publish-container

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ci/pull-container

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ci/run-container-ci

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/actions/pr-ci-common/action.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)