-
Notifications
You must be signed in to change notification settings - Fork 86
65 lines (54 loc) · 1.73 KB
/
Copy pathsize-check.yml
File metadata and controls
65 lines (54 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "50 6 * * *"
workflow_dispatch:
env:
RUST_TOOLCHAIN: stable
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
jobs:
build_and_run_size_report:
runs-on: ubuntu-latest
steps:
- name: Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy, rust-src
- name: Setup | Rust no-std target
run: rustup target add riscv32imac-unknown-none-elf
- name: Install libdbus
run: sudo apt-get install -y libdbus-1-dev
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: Examples
run: cargo build --release --no-default-features --features os,rustcrypto,log
- name: Prepare bloat report from the previous builds
run: |
python scripts/memory/gh_sizes.py \
linux rs-matter onoff-light \
target/release/onoff_light \
/tmp/bloat_reports/
python scripts/memory/gh_sizes.py \
linux rs-matter dimmable_light \
target/release/dimmable_light \
/tmp/bloat_reports/
python scripts/memory/gh_sizes.py \
linux rs-matter speaker \
target/release/speaker \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: linux