File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Build all Rust apps
2
2
3
3
on :
4
+ workflow_call :
5
+ inputs :
6
+ c_sdk_branch :
7
+ required : false
8
+ default : ' '
9
+ type : string
4
10
workflow_dispatch :
5
- inputs :
6
- sdk_branch :
7
- type : string
8
- required : false
9
- default : ' '
11
+ inputs :
12
+ c_sdk_branch :
13
+ type : string
14
+ required : false
15
+ default : ' '
10
16
pull_request :
11
17
18
+ env :
19
+ C_SDK_URL : ' https://github.com/LedgerHQ/ledger-secure-sdk.git'
20
+
12
21
jobs :
13
22
retrieve-rust-apps :
14
23
name : Retrieve Rust Apps
@@ -106,6 +115,14 @@ jobs:
106
115
107
116
- name : Build
108
117
run : |
118
+ # Clone C SDK if provided
119
+ if [ -n "${{ github.event.inputs.c_sdk_branch }}" ]; then
120
+ git clone $C_SDK_URL --branch ${{ github.event.inputs.c_sdk_branch }} --single-branch c_sdk
121
+ echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
122
+ LEDGER_SDK_PATH=$(realpath c_sdk)
123
+ else
124
+ echo "using C SDK from ledger-app-builder"
125
+ fi
109
126
cd ${{ matrix.app-name }}
110
127
build_directory=$(ledger-manifest --output-build-directory ledger_app.toml)
111
128
cd $build_directory
You can’t perform that action at this time.
0 commit comments