File tree Expand file tree Collapse file tree 6 files changed +36
-8
lines changed Expand file tree Collapse file tree 6 files changed +36
-8
lines changed Original file line number Diff line number Diff line change 21
21
description : ' The name of the artifact containing the built manifest'
22
22
required : true
23
23
type : string
24
+ run_for_devices :
25
+ description : ' The list of device(s) on which the checking will run'
26
+ required : true
27
+ type : string
24
28
25
29
jobs :
26
30
check_icons :
27
31
name : Check icons
32
+ strategy :
33
+ fail-fast : false
34
+ matrix :
35
+ device : ${{ fromJSON(inputs.run_for_devices) }}
28
36
runs-on : ubuntu-22.04
29
37
30
38
steps :
50
58
51
59
- name : Run script
52
60
run : |
53
- ./ledger-app-workflows/scripts/check_all.sh -c icons \
61
+ ./ledger-app-workflows/scripts/check_all.sh -c icons -t ${{ matrix.device }} \
54
62
-a ./app-repository -m ${{ inputs.download_manifest_artifact_name }}
Original file line number Diff line number Diff line change 21
21
description : ' The name of the artifact containing the built manifest'
22
22
required : true
23
23
type : string
24
+ run_for_devices :
25
+ description : ' The list of device(s) on which the checking will run'
26
+ required : true
27
+ type : string
24
28
25
29
jobs :
26
30
check_makefile :
27
31
name : Check Makefile
32
+ strategy :
33
+ fail-fast : false
34
+ matrix :
35
+ device : ${{ fromJSON(inputs.run_for_devices) }}
28
36
runs-on : ubuntu-22.04
29
37
30
38
steps :
50
58
51
59
- name : Run script
52
60
run : |
53
- ./ledger-app-workflows/scripts/check_all.sh -c makefile \
61
+ ./ledger-app-workflows/scripts/check_all.sh -c makefile -t ${{ matrix.device }} \
54
62
-a ./app-repository -m ${{ inputs.download_manifest_artifact_name }}
Original file line number Diff line number Diff line change @@ -60,12 +60,13 @@ jobs:
60
60
61
61
call_check_icons :
62
62
name : Dispatch check
63
- needs : [call_get_workflow_version, call_get_app_manifest]
63
+ needs : [call_get_app_metadata, call_get_workflow_version, call_get_app_manifest]
64
64
uses : ./.github/workflows/_check_icons.yml
65
65
with :
66
66
app-repository : ${{ inputs.app_repository }}
67
67
download_manifest_artifact_name : manifests
68
68
ledger-app-workflows_ref : ${{ needs.call_get_workflow_version.outputs.version }}
69
+ run_for_devices : ${{ needs.call_get_app_metadata.outputs.compatible_devices }}
69
70
70
71
call_check_app_load_params :
71
72
name : Dispatch check
@@ -77,12 +78,13 @@ jobs:
77
78
78
79
call_check_makefile :
79
80
name : Dispatch check
80
- needs : [call_get_workflow_version, call_get_app_manifest]
81
+ needs : [call_get_app_metadata, call_get_workflow_version, call_get_app_manifest]
81
82
uses : ./.github/workflows/_check_makefile.yml
82
83
with :
83
84
app-repository : ${{ inputs.app_repository }}
84
85
download_manifest_artifact_name : manifests
85
86
ledger-app-workflows_ref : ${{ needs.call_get_workflow_version.outputs.version }}
87
+ run_for_devices : ${{ needs.call_get_app_metadata.outputs.compatible_devices }}
86
88
87
89
call_check_readme :
88
90
name : Dispatch check
Original file line number Diff line number Diff line change @@ -198,13 +198,13 @@ call_step() {
198
198
fi
199
199
;;
200
200
" icons" )
201
- COMMAND=" ${dirName} /check_icons.sh ${APP_DIR} ${REPO_NAME} ${MANIFEST_DIR} "
201
+ COMMAND=" ${dirName} /check_icons.sh ${APP_DIR} ${REPO_NAME} ${MANIFEST_DIR} ${TARGET} "
202
202
;;
203
203
" app_load_params" )
204
204
COMMAND=" python3 ${DATABASE_DIR} /scripts/app_load_params_check.py --database_path ${DATABASE_DIR} /app-load-params-db.json --app_manifests_path ${MANIFEST_DIR} "
205
205
;;
206
206
" makefile" )
207
- COMMAND=" ${dirName} /check_makefile.sh ${APP_DIR} ${REPO_NAME} ${MANIFEST_DIR} "
207
+ COMMAND=" ${dirName} /check_makefile.sh ${APP_DIR} ${REPO_NAME} ${MANIFEST_DIR} ${TARGET} "
208
208
;;
209
209
" readme" )
210
210
COMMAND=" ${dirName} /check_readme.sh ${APP_DIR} ${REPO_NAME} "
Original file line number Diff line number Diff line change @@ -155,12 +155,17 @@ main() (
155
155
repo=" $1 "
156
156
repo_name=" $2 "
157
157
manifests_dir=" $3 "
158
+ target=" $4 "
158
159
159
160
all_glyph_files=" "
160
161
declare -A icons_and_devices
161
162
162
163
# Parse all manifest files
163
- manifests_list=$( find " $manifests_dir " -type f -name " *.json" )
164
+ if [[ -n " ${target} " ]]; then
165
+ manifests_list=" ${manifests_dir} /manifest_${target} .json"
166
+ else
167
+ manifests_list=$( find " $manifests_dir " -type f -name " *.json" )
168
+ fi
164
169
while IFS= read -r manifest; do
165
170
log_info " Checking manifest $manifest "
166
171
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ main() (
10
10
repo=" $1 "
11
11
repo_name=" $2 "
12
12
manifests_dir=" $3 "
13
+ target=" $4 "
13
14
14
15
declare -A variants_array
15
16
declare -A appnames_array
@@ -22,7 +23,11 @@ main() (
22
23
fi
23
24
24
25
# Parse all manifest files
25
- manifests_list=$( find " $manifests_dir " -type f -name " *.json" )
26
+ if [[ -n " ${target} " ]]; then
27
+ manifests_list=" ${manifests_dir} /manifest_${target} .json"
28
+ else
29
+ manifests_list=$( find " $manifests_dir " -type f -name " *.json" )
30
+ fi
26
31
while IFS= read -r manifest; do
27
32
log_info " Checking manifest $manifest "
28
33
You can’t perform that action at this time.
0 commit comments