diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea4f9b2..66be384 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,40 @@ jobs: run: mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make - run: make cpp_test + build_nanoS: + needs: configure + runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }} + container: + image: zondax/ledger-app-builder:latest + options: --user ${{ needs.configure.outputs.uid_gid }} + env: + BOLOS_SDK: /opt/nanos-secure-sdk + outputs: + size: ${{steps.build.outputs.size}} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + - name: Install deps + run: pip install ledgerblue + - name: Build Standard app + id: build + shell: bash -l {0} + run: | + make buildS + echo "size=$(python3 deps/ledger-zxlib/scripts/getSize.py s)" >> $GITHUB_OUTPUT + + size_nano_s: + needs: build_nanoS + runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }} + env: + NANOS_LIMIT_SIZE: 136 + steps: + - run: | + echo "LNS app size: ${{needs.build_nanoS.outputs.size}} KiB" + [ ${{needs.build_nanoS.outputs.size}} -le $NANOS_LIMIT_SIZE ] + test_zemu: runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }} steps: