26
26
with :
27
27
app_repository : ${{ inputs.app_repository }}
28
28
app_branch_name : ${{ inputs.app_branch_name }}
29
- upload_app_binaries_artifact : " compiled_app_binaries"
29
+ upload_app_binaries_artifact : compiled_app_binaries-${{ inputs.app_branch_name }}
30
30
31
31
build_docker_image :
32
32
name : Build Speculos Docker image
@@ -54,22 +54,25 @@ jobs:
54
54
- name : Upload artifact
55
55
uses : actions/upload-artifact@v4
56
56
with :
57
- name : speculos_image
57
+ name : speculos_image-${{ inputs.app_branch_name }}
58
58
path : /tmp/speculos_image.tar
59
59
60
+ call_get_app_metadata :
61
+ name : Retrieve application metadata
62
+ uses : LedgerHQ/ledger-app-workflows/.github/workflows/_get_app_metadata.yml@v1
63
+ with :
64
+ app_repository : ${{ inputs.app_repository }}
65
+ app_branch_name : ${{ inputs.app_branch_name }}
66
+
60
67
ragger_tests :
61
68
name : Functional tests with Ragger
62
69
runs-on : ubuntu-latest
63
- needs : [build_docker_image, build_application]
70
+ needs : [build_docker_image, build_application, call_get_app_metadata ]
64
71
strategy :
65
72
fail-fast : false
66
73
matrix :
67
- include :
68
- - device : nanos
69
- - device : nanox
70
- - device : nanosp
71
- - device : stax
72
- - device : flex
74
+ device : ${{ fromJSON(needs.call_get_app_metadata.outputs.compatible_devices) }}
75
+
73
76
steps :
74
77
- name : Clone
75
78
uses : actions/checkout@v4
83
86
uses : actions/checkout@v4
84
87
with :
85
88
repository : ${{ inputs.app_repository }}
86
- ref : ${{ matrix.device == 'nanos' && 'nanos_baseline' || inputs.app_branch_name }}
89
+ ref : ${{ inputs.app_branch_name }}
87
90
path : app
88
91
submodules : recursive
89
92
fetch-depth : 0
@@ -105,7 +108,7 @@ jobs:
105
108
- name : Download app binaries
106
109
uses : actions/download-artifact@v4
107
110
with :
108
- name : " compiled_app_binaries"
111
+ name : compiled_app_binaries-${{ inputs.app_branch_name }}
109
112
path : ${{ github.workspace }}/app/build
110
113
111
114
- name : Run and test Speculos docker
0 commit comments