diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-05-28 16:16:59 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-05-28 16:16:59 +0800 |
commit | 4dfb18fe86cbe881b71de2db2faa43e8206e9a4f (patch) | |
tree | 71249f4555c62240bea53f880992634c7d3c5a5b /.github/workflows | |
parent | 6d1503759774510ca9509175efd5785b41b9482d (diff) |
Check package size limit in CI using cargo-diet
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/rust.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b33d152..7ffb79b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,3 +19,10 @@ jobs: run: cargo fmt --all -- --check - name: clippy run: cargo clippy + - name: Check crate package size + run: | + curl -LSfs https://raw.githubusercontent.com/the-lean-crate/cargo-diet/master/ci/install.sh | \ + sh -s -- --git the-lean-crate/cargo-diet --target x86_64-unknown-linux-musl + + cargo diet -n --package-size-limit 30KB + |