@@ -58,12 +58,30 @@ jobs:
58
58
repository : LedgerHQ/${{ inputs.app_name }}
59
59
ref : ${{ inputs.app_branch }}
60
60
path : ${{ inputs.app_name }}
61
+ submodules : true
61
62
62
- - name : Patch Cargo.toml to use y333/nightly_support for ledger_device_sdk and include_gif crate
63
+ - name : Patch Cargo.toml to use y333/nightly_support for ledger_device_sdk, ledger_secure_sdk_sys, include_gif crates
63
64
run : |
64
65
cd ${{ inputs.app_name }}/${{ needs.call_get_app_metadata.outputs.build_directory }}
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
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
+ # Patch include_gif
68
+ echo "" >> Cargo.toml && \
69
+ echo "[patch.crates-io.include_gif]" >> Cargo.toml && \
70
+ echo "git = \"https://github.com/LedgerHQ/ledger-device-rust-sdk.git\"" >> Cargo.toml && \
71
+ echo "branch = \"y333/nightly_support\"" >> Cargo.toml
72
+
73
+ # Patch ledger_secure_sdk_sys
74
+ echo "" >> Cargo.toml && \
75
+ echo "[patch.crates-io.ledger_secure_sdk_sys]" >> Cargo.toml && \
76
+ echo "git = \"https://github.com/LedgerHQ/ledger-device-rust-sdk.git\"" >> Cargo.toml && \
77
+ echo "branch = \"y333/nightly_support\"" >> Cargo.toml
78
+
79
+ # Patch ledger_device_sdk
80
+ echo "" >> Cargo.toml && \
81
+ echo "[patch.crates-io.ledger_device_sdk]" >> Cargo.toml && \
82
+ echo "git = \"https://github.com/LedgerHQ/ledger-device-rust-sdk.git\"" >> Cargo.toml && \
83
+ echo "branch = \"y333/nightly_support\"" >> Cargo.toml
84
+
67
85
echo "Display patched Cargo.toml:"
68
86
cat Cargo.toml
69
87
0 commit comments