Bump app version and containers #204
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, pull_request] | |
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:d5bfe2e793f15a826971ae9de2adcad524df3e8e | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make DEVEL=1 | |
- name: Upload app binary NanoS | |
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:d5bfe2e793f15a826971ae9de2adcad524df3e8e | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make DEVEL=1 BOLOS_SDK=$NANOX_SDK | |
- name: Upload app binary NanoX | |
uses: actions/upload-artifact@v2 | |
with: | |
name: fio-app-nanoX-debug | |
path: bin | |
job_nanoSP_build_debug: | |
name: Build debug app for NanoSP | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:d5bfe2e793f15a826971ae9de2adcad524df3e8e | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
make DEVEL=1 BOLOS_SDK=$NANOSP_SDK | |
- name: Upload app binary NanoSP | |
uses: actions/upload-artifact@v2 | |
with: | |
name: fio-app-nanoSP-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:d5bfe2e793f15a826971ae9de2adcad524df3e8e | |
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 | |
job_speculos_nanos_unit_tests_5001: | |
name: NanoS Speculos 5001 unit tests | |
needs: job_nanoS_build_debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.10.0 | |
- name: Download app binary | |
uses: actions/download-artifact@v2 | |
with: | |
name: fio-app-nanoS-debug | |
path: bin | |
- name: install speculos | |
run: | | |
export BOLOS_SDK= | |
make js-yarn | |
make test-yarn | |
- name: Run tests | |
run: | | |
make speculos_port_5001_unit_test | |
- name: Upload Speculos 5001s log | |
uses: actions/upload-artifact@v2 | |
with: | |
name: speculos-ut-5001s-log | |
path: tests_speculos/speculos-port-5001.log | |
job_speculos_nanos_tests_5001: | |
name: NanoS Speculos 5001 tests | |
needs: job_nanoS_build_debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.10.0 | |
- name: Download app binary | |
uses: actions/download-artifact@v2 | |
with: | |
name: fio-app-nanoS-debug | |
path: bin | |
- name: install speculos | |
run: | | |
export BOLOS_SDK= | |
make js-yarn | |
make test-yarn | |
- name: Run tests | |
run: | | |
make speculos_port_5001_test | |
- name: Upload Speculos 5001s log | |
uses: actions/upload-artifact@v2 | |
with: | |
name: speculos-5001s-log | |
path: tests_speculos/speculos-port-5001.log | |
job_speculos_nanox_tests_5001: | |
name: NanoX Speculos 5001 tests | |
needs: job_nanoX_build_debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.10.0 | |
- name: Download app binary | |
uses: actions/download-artifact@v2 | |
with: | |
name: fio-app-nanoX-debug | |
path: bin | |
- name: install speculos | |
run: | | |
export BOLOS_SDK= | |
make js-yarn | |
make test-yarn | |
- name: Run tests | |
run: | | |
TARGET_DEVICE=NANO_X make speculos_port_5001_test | |
- name: Upload Speculos 5001s log | |
uses: actions/upload-artifact@v2 | |
with: | |
name: speculos-5001x-log | |
path: tests_speculos/speculos-port-5001.log | |
job_speculos_nanosp_tests_5001: | |
name: NanoS+ Speculos 5001 tests | |
needs: job_nanoSP_build_debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.10.0 | |
- name: Download app binary | |
uses: actions/download-artifact@v2 | |
with: | |
name: fio-app-nanoSP-debug | |
path: bin | |
- name: install speculos | |
run: | | |
export BOLOS_SDK= | |
make js-yarn | |
make test-yarn | |
- name: Run tests | |
run: | | |
TARGET_DEVICE=NANO_SP make speculos_port_5001_test | |
- name: Upload Speculos 5001sp log | |
uses: actions/upload-artifact@v2 | |
with: | |
name: speculos-5001sp-log | |
path: tests_speculos/speculos-port-5001.log | |