Skip to content

cmake build system - #1687

Draft
mbrousset-ledger wants to merge 3 commits into
masterfrom
mbr/cmake2
Draft

cmake build system#1687
mbrousset-ledger wants to merge 3 commits into
masterfrom
mbr/cmake2

Conversation

@mbrousset-ledger

@mbrousset-ledger mbrousset-ledger commented Aug 11, 2026

Copy link
Copy Markdown
Contributor
  • cmake project + move tests to move to a component based fashion
  • add function to purge legacy branch protection rules

To build unit tests :

cmake --preset unit-tests
cmake --build --preset unit-tests
ctest --preset unit-tests

Subsequent integration in app-boilerplate :

LedgerHQ/app-boilerplate#221

@codecov-commenter

codecov-commenter commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 24.11%. Comparing base (cbcf139) to head (b96cc36).
⚠️ Report is 8 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (cbcf139) and HEAD (b96cc36). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (cbcf139) HEAD (b96cc36)
unittests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1687       +/-   ##
===========================================
- Coverage   39.72%   24.11%   -15.61%     
===========================================
  Files         240      214       -26     
  Lines       23180    19347     -3833     
  Branches     4617     4448      -169     
===========================================
- Hits         9208     4666     -4542     
- Misses      13464    14204      +740     
+ Partials      508      477       -31     
Flag Coverage Δ
fuzzing 24.11% <ø> (-0.05%) ⬇️
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +14 to +46
name: Unit tests
runs-on: ubuntu-latest
# Brings clang, ruby (CMock), lcov and Pillow (NBGL glyph generation).
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest

steps:
- name: Clone
uses: actions/checkout@v4

# The container user differs from the checkout owner, which stops the
# SDK_VERSION/SDK_HASH lookup in target_profile.cmake.
- name: Trust the checkout
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Configure
run: cmake --preset unit-tests

- name: Build
run: cmake --build --preset unit-tests --parallel

- name: Run tests
run: ctest --preset unit-tests

- name: Generate coverage
run: cmake --build --preset unit-tests --target generate_coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build-cmake/unit-tests/coverage.info
fail_ci_if_error: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants