diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index a88e64f..417a1e4 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -3,12 +3,45 @@ name: Compilation & tests on: [push, pull_request] jobs: - job_build_application: + job_build_application_with_reusable_workflow: name: Build application using the reusable workflow uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1 with: upload_app_binaries_artifact: "compiled_app_binaries" + job_build_nano_debug: + name: Build application for NanoS+, X, Stax, Flex + runs-on: ubuntu-latest + strategy: + matrix: + include: + - SDK: "$NANOX_SDK" + artifact: ergo-app-debug-nanox + - SDK: "$NANOSP_SDK" + artifact: ergo-app-debug-nanosp + - SDK: "$STAX_SDK" + artifact: ergo-app-debug-stax + - SDK: "$FLEX_SDK" + artifact: ergo-app-debug-flex + + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest + + steps: + - name: Clone + uses: actions/checkout@v4 + + - name: Build + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + make BOLOS_SDK=${{ matrix.SDK }} DEBUG=1 + + - name: Upload app binary + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact }} + path: bin + job_unit_test: name: Unit tests runs-on: ubuntu-latest @@ -114,7 +147,7 @@ jobs: #- model: stax #- model: flex - needs: job_build_application + needs: job_build_nano_debug runs-on: ubuntu-latest container: