@@ -5,20 +5,20 @@ permissions:
5
5
on :
6
6
workflow_call :
7
7
inputs :
8
- app_repository :
9
- description : ' The repository of the application to build and test'
8
+ app_name :
9
+ description : ' The name of the application to build and test'
10
10
required : true
11
11
type : string
12
- app_branch_name :
12
+ app_branch :
13
13
description : ' The branch of the application to build and test'
14
14
required : true
15
15
type : string
16
16
workflow_dispatch :
17
17
inputs :
18
- app_repository :
19
- description : ' The repository of the application to build and test'
18
+ app_name :
19
+ description : ' The name of the application to build and test'
20
20
required : true
21
- app_branch_name :
21
+ app_branch :
22
22
description : ' The branch of the application to build and test'
23
23
required : true
24
24
# schedule:
33
33
name : Retrieve application metadata
34
34
uses : LedgerHQ/ledger-app-workflows/.github/workflows/_get_app_metadata.yml@v1
35
35
with :
36
- app_repository : ${{ inputs.app_repository }}
37
- app_branch_name : ${{ inputs.app_branch_name }}
36
+ app_repository : LedgerHQ/ ${{ inputs.app_name }}
37
+ app_branch_name : ${{ inputs.app_branch }}
38
38
39
39
build_with_last_nightly :
40
40
needs : call_get_app_metadata
@@ -55,19 +55,21 @@ jobs:
55
55
- name : Checkout Code
56
56
uses : actions/checkout@v4
57
57
with :
58
- repository : ${{ inputs.app_repository }}
59
- ref : ${{ inputs.app_branch_name }}
58
+ repository : LedgerHQ/${{ inputs.app_name }}
59
+ ref : ${{ inputs.app_branch }}
60
+ path : ${{ inputs.app_name }}
60
61
61
62
- name : Patch Cargo.toml to use y333/nightly_support for ledger_device_sdk and include_gif crate
62
63
run : |
63
- cd ${{ needs.call_get_app_metadata.outputs.build_directory }}
64
+ cd ${{ inputs.app_name }}/${{ needs.call_get_app_metadata.outputs.build_directory }}
64
65
sed -i 's|ledger_device_sdk = ".*"|ledger_device_sdk = { git = "https://github.com/LedgerHQ/ledger-device-rust-sdk.git", branch = "y333/nightly_support" }|' Cargo.toml
65
66
sed -i 's|include_gif = ".*"|include_gif = { git = "https://github.com/LedgerHQ/ledger-device-rust-sdk.git", branch = "y333/nightly_support" }|' Cargo.toml
66
67
echo "Display patched Cargo.toml:"
67
68
cat Cargo.toml
68
69
69
70
- name : Build
70
71
run : |
72
+ cd ${{ inputs.app_name }}/${{ needs.call_get_app_metadata.outputs.build_directory }}
71
73
cargo update include_gif
72
74
cargo update ledger_secure_sdk_sys
73
75
cargo update ledger_device_sdk
91
93
- name : Upload binary artifacts
92
94
uses : actions/upload-artifact@v4
93
95
with :
94
- name : " app_binaries -${{ matrix.device }}"
96
+ name : " ${{ inputs.app_name }}_binaries -${{ matrix.device }}"
95
97
path : ${{env.BINARY_PATH}}
96
98
if-no-files-found : error
97
99
@@ -103,15 +105,15 @@ jobs:
103
105
- name : Merge artifacts
104
106
uses : actions/upload-artifact/merge@v4
105
107
with :
106
- name : " app_binaries "
107
- pattern : " app_binaries -*"
108
+ name : " ${{ inputs.app_name }}_binaries "
109
+ pattern : " ${{ inputs.app_name }}_binaries -*"
108
110
delete-merged : true
109
111
110
112
ragger_tests :
111
113
name : Run ragger tests using the reusable workflow
112
114
needs : merge_artifacts
113
115
uses : LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
114
116
with :
115
- app_repository : ${{ inputs.app_repository }}
116
- app_branch_name : ${{ inputs.app_branch_name }}
117
- download_app_binaries_artifact : " app_binaries "
117
+ app_repository : LedgerHQ/ ${{ inputs.app_name }}
118
+ app_branch_name : ${{ inputs.app_branch }}
119
+ download_app_binaries_artifact : " ${{ inputs.app_name }}_binaries "
0 commit comments