Skip to content

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

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

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

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 }})
devices='[{"devices": "[\"stax\", \"nanos+\", \"nanos\", \"nanox\"]", "name": "app-u2f", "repository": "LedgerHQ/app-u2f"}, {"devices": "[\"flex\", \"nanos+\", \"nanos\", \"stax\", \"nanox\"]", "name": "app-bitcoin", "repository": "LedgerHQ/app-bitcoin"}, {"devices": "[\"flex\", \"nanos+\", \"nanos\", \"stax\", \"nanox\"]", "name": "app-ethereum", "repository": "LedgerHQ/app-ethereum"}, ]'
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: ${{ matrix.app.name }}
upload_app_binaries_artifact: "compiled_app_binaries"

Check failure on line 39 in .github/workflows/build_for_sdks.yml

View workflow run for this annotation

GitHub Actions / APP-TESTER TESTS

Invalid workflow file

The workflow is not valid. .github/workflows/build_for_sdks.yml (Line: 39, Col: 7): 'upload_app_binaries_artifact' is already defined
app_branch_name: develop