Skip to content

Commit f190f89

Browse files
authored
Merge pull request #123 from LedgerHQ/cargo-ledger-build-args
Add argument to customize the build command for Rust apps
2 parents 1de4bed + f43091c commit f190f89

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable_build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ on:
5353
required: false
5454
default: ""
5555
type: string
56+
cargo_ledger_build_args:
57+
description: "Additional arguments to pass to the cargo ledger build command for Rust applications"
58+
required: false
59+
default: ""
60+
type: string
5661

5762
jobs:
5863
call_get_app_metadata:
@@ -100,7 +105,7 @@ jobs:
100105
cargo +$RUST_NIGHTLY update $crate
101106
fi
102107
done
103-
cargo ledger build ${BUILD_DEVICE_NAME} && \
108+
cargo ledger build ${BUILD_DEVICE_NAME} -- ${{inputs.cargo_ledger_build_args}} && \
104109
binary_path=$(cargo metadata --no-deps --format-version 1 | jq -r '.target_directory')/ && \
105110
echo "binary_path=$binary_path" >> $GITHUB_OUTPUT && \
106111
echo "binary_path=$binary_path" && \

0 commit comments

Comments
 (0)