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,21 +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
74
+ device : ${{ fromJSON(needs.call_get_app_metadata.outputs.compatible_devices) }}
75
+
72
76
steps :
73
77
- name : Clone
74
78
uses : actions/checkout@v4
93
97
- name : Download artifact
94
98
uses : actions/download-artifact@v4
95
99
with :
96
- name : speculos_image
100
+ name : speculos_image-${{ inputs.app_branch_name }}
97
101
path : /tmp
98
102
99
103
- name : Load image
@@ -104,7 +108,7 @@ jobs:
104
108
- name : Download app binaries
105
109
uses : actions/download-artifact@v4
106
110
with :
107
- name : " compiled_app_binaries"
111
+ name : compiled_app_binaries-${{ inputs.app_branch_name }}
108
112
path : ${{ github.workspace }}/app/build
109
113
110
114
- name : Run and test Speculos docker
0 commit comments