-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build & test BP for a given API level
- Loading branch information
1 parent
00c0a50
commit b9bb6da
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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 | ||
|