Skip to content

[draft] 2nd version, leveraging the reusable builder workflow #7

[draft] 2nd version, leveraging the reusable builder workflow

[draft] 2nd version, leveraging the reusable builder workflow #7

name: APP-TESTER TESTS
on:
workflow_dispatch:
push:
pull_request:
jobs:
define_matrix:
name: Generate applications list for each device according to manifests
runs-on: ubuntu-latest
outputs:
apps_config: ${{ steps.process_devices.outputs.apps_config }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install ledgered
- name: Define the list of application to build by device
id: process_devices
run: |
devices=$(python script.py -l 10 -d all -t ${{ secrets.GITHUB_TOKEN }})
echo "apps_config=$devices" >> $GITHUB_OUTPUT
build_applications:
name: Build all selected applications using the reusable workflow
needs: define_matrix
strategy:
fail-fast: false
matrix:
app: ${{ fromJSON(needs.define_matrix.outputs.apps_config) }}
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: ${{ matrix.app.repository }}
run_for_devices: ${{ matrix.app.devices }}
upload_app_binaries_artifact: "compiled_app_binaries"