From 8ad3894c1cf7ea347ac3b8674c6e9c868d4a6a93 Mon Sep 17 00:00:00 2001 From: tdejoigny-ledger Date: Fri, 14 Jun 2024 17:45:48 +0200 Subject: [PATCH] build & test BP for a given API level --- .github/workflows/api_level_check.yml | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/api_level_check.yml diff --git a/.github/workflows/api_level_check.yml b/.github/workflows/api_level_check.yml new file mode 100644 index 000000000..0fd19289e --- /dev/null +++ b/.github/workflows/api_level_check.yml @@ -0,0 +1,54 @@ +name: Api level check + +on: + workflow_dispatch: + inputs: + sdk_branch: + type: string + required: false + default: '' + pull_request: + branches: + - 'API_LEVEL_*' + +jobs: + test-build: + name: Build and test Boilerplate app + runs-on: ubuntu-latest + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest + + steps: + - name: Clone App + uses: actions/checkout@v4 + with: + repository: LedgerHQ/app-boilerplate + ref: master + + - name: Clone SDK + uses: actions/checkout@v4 + with: + path: sdk + ref: ${{ inputs.sdk_branch }} + + - name: Build NanoX + run: | + TARGET=nanox BOLOS_SDK=$GITHUB_WORKSPACE/sdk make + + - name: Build NanoS2 + if: "contains(matrix.repo_info.devices, 'nanos+')" + run: | + TARGET=nanos2 BOLOS_SDK=$GITHUB_WORKSPACE/sdk make + + - name: Build Stax + if: "contains(matrix.repo_info.devices, 'stax')" + run: | + TARGET=stax BOLOS_SDK=$GITHUB_WORKSPACE/sdk make + + - name: Build Flex + if: "contains(matrix.repo_info.devices, 'flex')" + run: | + TARGET=flex BOLOS_SDK=$GITHUB_WORKSPACE/sdk make + + - name: Run ragger tests using the reusable workflow + uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1