Skip to content

Commit

Permalink
add stack report generation to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanHri committed Dec 29, 2023
1 parent c1a9219 commit 4d408c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,32 @@ jobs:
cd test/
bash ci_scripts/flash_report_gen.sh
- name: Upload rom report
- name: Upload rom report with tinycrypt
uses: actions/upload-artifact@v2
with:
name: rom-report
name: rom-report-tinycrypt-crypto
path: test/build_reports/rom_report_nrf91_with_tinycrypt.txt

- name: Upload rom report with mbedtls
uses: actions/upload-artifact@v2
with:
name: rom-report-mbedtls-crypto
path: test/build_reports/rom_report_nrf91_with_mbedtls.txt

### Generate stack report
- name: Genrate stack report
run: |
source ~/zephyrproject/zephyr/zephyr-env.sh
source ~/zephyrproject/.venv/bin/activate
cd test/
bash ci_scripts/stack_report_gen.sh
- name: Upload stack report
uses: actions/upload-artifact@v2
with:
name: stack-report
path: test/build_reports/stack_report.html

### Generate test coverage report
- name: Build native_posix with coverage information
run: |
Expand Down
6 changes: 3 additions & 3 deletions test/ci_scripts/flash_report_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ echo "\n\n\n"
# MBEDTLS YES
# MESSAGE_4: YES
# VLA: YES
#rm -rf build
#west build -b nrf9160dk_nrf9160 -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DMBEDTLS"
#west build -t rom_report > build_reports/rom_report_nrf91_with_mbedtls.txt
rm -rf build
west build -b nrf9160dk_nrf9160 -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DMBEDTLS"
west build -t rom_report > build_reports/rom_report_nrf91_with_mbedtls.txt

0 comments on commit 4d408c4

Please sign in to comment.