Skip to content

Commit

Permalink
[feature] #1261: Add cargo bloat.
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr <a-p-petrosyan@yandex.ru>
  • Loading branch information
appetrosyan committed Dec 6, 2021
1 parent 1925148 commit 50e20b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/iroha2-dev-pr-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@ on:

jobs:
check:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Print all info
run: |
cargo version
lscpu
free -h
- name: Format check
run: cargo +nightly-2021-12-02 fmt --all -- --check
- name: Static analysis without features
Expand All @@ -35,3 +30,15 @@ jobs:
cargo doc --no-deps --quiet
./scripts/check_docs.sh
if: always()

bloat:
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: orf/cargo-bloat-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_packages: iroha_actor iroha_actor_derive iroha_client iroha_config iroha_config_derive iroha_core iroha_crypto iroha_data_model iroha_derive iroha_futures iroha_futures_derive iroha_logger iroha_macro iroha_p2p iroha_permissions_validators iroha_schema iroha_schema_derive iroha_substrate iroha_telemetry iroha_version iroha_version_derive test_network
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev-pr-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux]
container:
image: 7272721/i2-ci:latest
timeout-minutes: 60
Expand Down

0 comments on commit 50e20b1

Please sign in to comment.