Merge pull request #1182 from LedgerHQ/nbgl-adaptations-for-apex #3043
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Clang Static Analyzer | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
scan_build: | |
name: Clang Static Analyzer for all devices | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [nanox, nanos2, stax, flex] | |
debug: [0, 1] | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest | |
steps: | |
- name: Clone Boilerplate | |
uses: actions/checkout@v4 | |
with: | |
repository: LedgerHQ/app-boilerplate | |
ref: master | |
- name: Clone SDK | |
uses: actions/checkout@v4 | |
with: | |
path: sdk | |
- name: Install prerequisites | |
run: pip install --break-system-packages ledgered | |
- name: Build with Clang Static Analyzer | |
run: | | |
TARGET=${{ matrix.target }} \ | |
BOLOS_SDK=sdk \ | |
make scan-build -j ENABLE_SDK_WERROR=1 DEBUG=${{ matrix.debug }} | |
- name: Upload scan result | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: scan-build | |
path: scan-build |