|
25 | 25 |
|
26 | 26 | concurrency: |
27 | 27 | group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} |
| 28 | + |
28 | 29 | cancel-in-progress: true |
29 | 30 |
|
30 | 31 | env: |
@@ -54,85 +55,99 @@ jobs: |
54 | 55 | if: ${{ !env.ACT }} |
55 | 56 | with: |
56 | 57 | gh-context: ${{ toJson(github) }} |
| 58 | + |
57 | 59 | - name: Build example BL602 Lighting App |
58 | 60 | run: | |
59 | 61 | ./scripts/run_in_build_env.sh \ |
60 | | - "./scripts/build/build_examples.py \ |
61 | | - --target bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc \ |
62 | | - build \ |
63 | | - --copy-artifacts-to out/artifacts \ |
64 | | - " |
65 | | - - name: Prepare some bloat report from the previous builds |
66 | | - run: | |
| 62 | + "./scripts/build/build_examples.py --target bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc build" |
67 | 63 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
68 | 64 | bl602 bl602+mfd+littlefs+rpc lighting-app \ |
69 | | - out/artifacts/bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc/chip-bl602-lighting-example.out \ |
| 65 | + out/bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc/chip-bl602-lighting-example.out \ |
70 | 66 | /tmp/bloat_reports/ |
71 | | - - name: Clean out build output |
72 | | - run: rm -rf ./out |
| 67 | + rm -rf ./out |
73 | 68 |
|
74 | | - - name: Build example BL702 Lighting App |
| 69 | + - name: Build example BL702 Lighting App (Ethernet) |
| 70 | + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'bouffalolab/bflb-connectedhomeip' |
75 | 71 | run: | |
76 | 72 | ./scripts/run_in_build_env.sh \ |
77 | | - "./scripts/build/build_examples.py \ |
78 | | - --target bouffalolab-bl706dk-light-ethernet-easyflash \ |
79 | | - --target bouffalolab-bl706dk-light-wifi-littlefs \ |
80 | | - --target bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc \ |
81 | | - build \ |
82 | | - --copy-artifacts-to out/artifacts \ |
83 | | - " |
84 | | - - name: Prepare some bloat report from the previous builds |
85 | | - run: | |
| 73 | + "./scripts/build/build_examples.py --target bouffalolab-bl706dk-light-ethernet-easyflash build " |
86 | 74 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
87 | 75 | bl702 bl702+eth lighting-app \ |
88 | | - out/artifacts/bouffalolab-bl706dk-light-ethernet-easyflash/chip-bl702-lighting-example.out \ |
| 76 | + out/bouffalolab-bl706dk-light-ethernet-easyflash/chip-bl702-lighting-example.out \ |
89 | 77 | /tmp/bloat_reports/ |
| 78 | + rm -rf ./out |
| 79 | +
|
| 80 | + - name: Build example BL702 Lighting App (Wi-Fi) |
| 81 | + run: | |
| 82 | + ./scripts/run_in_build_env.sh \ |
| 83 | + "./scripts/build/build_examples.py --target bouffalolab-bl706dk-light-wifi-littlefs-shell build " |
90 | 84 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
91 | | - bl702 bl702+wifi lighting-app \ |
92 | | - out/artifacts/bouffalolab-bl706dk-light-wifi-littlefs/chip-bl702-lighting-example.out \ |
| 85 | + bl702 bl702+eth lighting-app \ |
| 86 | + out/bouffalolab-bl706dk-light-wifi-littlefs-shell/chip-bl702-lighting-example.out \ |
93 | 87 | /tmp/bloat_reports/ |
| 88 | + rm -rf ./out |
| 89 | +
|
| 90 | + - name: Build example BL702 Lighting App (Thread) |
| 91 | + run: | |
| 92 | + ./scripts/run_in_build_env.sh \ |
| 93 | + "./scripts/build/build_examples.py --target bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc build " |
94 | 94 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
95 | | - bl702 bl706+mfd+rpc+littlefs lighting-app \ |
96 | | - out/artifacts/bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc/chip-bl702-lighting-example.out \ |
| 95 | + bl702 bl702+eth lighting-app \ |
| 96 | + out/bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc/chip-bl702-lighting-example.out \ |
97 | 97 | /tmp/bloat_reports/ |
98 | | - - name: Clean out build output |
99 | | - run: rm -rf ./out |
| 98 | + rm -rf ./out |
100 | 99 |
|
101 | 100 | - name: Build example BL702L Lighting App |
102 | | - timeout-minutes: 30 |
| 101 | + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'bouffalolab/bflb-connectedhomeip' |
103 | 102 | run: | |
104 | 103 | ./scripts/run_in_build_env.sh \ |
105 | | - "./scripts/build/build_examples.py \ |
106 | | - --target bouffalolab-bl704ldk-light-thread-littlefs-mfd \ |
107 | | - build \ |
108 | | - --copy-artifacts-to out/artifacts \ |
109 | | - " |
110 | | - - name: Prepare some bloat report from the previous builds |
111 | | - run: | |
| 104 | + "./scripts/build/build_examples.py --target bouffalolab-bl704ldk-light-thread-littlefs-mfd build " |
112 | 105 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
113 | 106 | bl702l bl702l+mfd+littlefs lighting-app \ |
114 | | - out/artifacts/bouffalolab-bl704ldk-light-thread-littlefs-mfd/chip-bl702l-lighting-example.out \ |
| 107 | + out/bouffalolab-bl704ldk-light-thread-littlefs-mfd/chip-bl702l-lighting-example.out \ |
115 | 108 | /tmp/bloat_reports/ |
116 | | - - name: Clean out build output |
117 | | - run: rm -rf ./out |
| 109 | + rm -rf ./out |
118 | 110 |
|
119 | 111 | - name: Build example BL702L Contact Sensor |
120 | | - timeout-minutes: 30 |
121 | 112 | run: | |
122 | 113 | ./scripts/run_in_build_env.sh \ |
123 | | - "./scripts/build/build_examples.py \ |
124 | | - --target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd \ |
125 | | - build \ |
126 | | - --copy-artifacts-to out/artifacts \ |
127 | | - " |
128 | | - - name: Prepare some bloat report from the previous builds |
129 | | - run: | |
| 114 | + "./scripts/build/build_examples.py --target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd build" |
130 | 115 | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
131 | 116 | bl702l bl702l+mfd+littlefs contact-sensor-app \ |
132 | | - out/artifacts/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \ |
| 117 | + out/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \ |
| 118 | + /tmp/bloat_reports/ |
| 119 | + rm -rf ./out |
| 120 | +
|
| 121 | + - name: Build example BL616 Lighting App (Ethernet) |
| 122 | + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'bouffalolab/bflb-connectedhomeip' |
| 123 | + run: | |
| 124 | + ./scripts/run_in_build_env.sh \ |
| 125 | + "./scripts/build/build_examples.py --target bouffalolab-bl616dk-light-ethernet-littlefs-mfd build " |
| 126 | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
| 127 | + bl616 bl616+ethernet lighting-app \ |
| 128 | + out/bouffalolab-bl616dk-light-ethernet-littlefs-mfd/chip-bl616-lighting-example.out \ |
| 129 | + /tmp/bloat_reports/ |
| 130 | + rm -rf ./out |
| 131 | +
|
| 132 | + - name: Build example BL616 Lighting App (Wi-Fi) |
| 133 | + run: | |
| 134 | + ./scripts/run_in_build_env.sh \ |
| 135 | + "./scripts/build/build_examples.py --target bouffalolab-bl616dk-light-wifi-littlefs-mfd-shell build" |
| 136 | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
| 137 | + bl616 bl616+wifi+shell lighting-app \ |
| 138 | + out/bouffalolab-bl616dk-light-wifi-littlefs-mfd-shell/chip-bl616-lighting-example.out \ |
| 139 | + /tmp/bloat_reports/ |
| 140 | + rm -rf ./out |
| 141 | +
|
| 142 | + - name: Build example BL616 Lighting App (Thread) |
| 143 | + run: | |
| 144 | + ./scripts/run_in_build_env.sh \ |
| 145 | + "./scripts/build/build_examples.py --target bouffalolab-bl616dk-light-thread-littlefs-mfd build" |
| 146 | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ |
| 147 | + bl616 bl616+thread lighting-app \ |
| 148 | + out/bouffalolab-bl616dk-light-thread-littlefs-mfd/chip-bl616-lighting-example.out \ |
133 | 149 | /tmp/bloat_reports/ |
134 | | - - name: Clean out build output |
135 | | - run: rm -rf ./out |
| 150 | + rm -rf ./out |
136 | 151 |
|
137 | 152 | - name: Uploading Size Reports |
138 | 153 | uses: ./.github/actions/upload-size-reports |
|
0 commit comments