You've already forked runc
mirror of
https://github.com/opencontainers/runc.git
synced 2026-10-23 19:49:01 +03:00
Add script/check-binary-size.sh, which builds every commit in a given range and checks that the size of the (stripped) runc binary does not grow by more than a specified amount (50 KiB by default) compared to the base. Add a CI job which runs it for every PR. Since some growth is sometimes justified, a maintainer can allow it by adding the bloat-approved label to the PR, and then re-running the job. A nice bonus is, since every commit is built, the job also checks that each commit in a PR compiles, which keeps git bisect usable. A build failure can not be overridden by the label. The idea is borrowed from podman's hack/ci/make-and-check-size.sh. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>