[auto]: add PR template #32
This file contains 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: Compilation & tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
job_nanoS_build_debug: | |
name: Build debug app for NanoS | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make DEBUG=1 | |
- name: Upload app binary | |
uses: actions/upload-artifact@v2 | |
with: | |
name: fio-app-nanoS-debug | |
path: bin | |
job_nanoX_build_debug: | |
name: Build debug app for NanoX | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make DEBUG=1 BOLOS_SDK=$NANOX_SDK | |
- name: Upload app binary | |
uses: actions/upload-artifact@v2 | |
with: | |
name: fio-app-nanoX-debug | |
path: bin | |
job_scan_build: | |
name: Clang Static Analyzer | |
runs-on: ubuntu-latest | |
needs: job_nanoS_build_debug | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build with Clang Static Analyzer | |
run: | | |
make clean | |
scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: scan-build | |
path: scan-build |