Skip to content

Commit

Permalink
fix ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 9, 2025
1 parent 98a76e5 commit 8bd0cc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_ledger_wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ name: Build minotari_ledger_wallet
env:
TS_FILENAME: "minotari_ledger_wallet"
SHARUN: "shasum --algorithm 256"
DOCKER_IMAGE: "ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:3.43.0 "

concurrency:
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
docker run --rm \
-v ".:/app" \
-w "/app/applications/minotari_ledger_wallet/wallet" \
ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder \
${{env.DOCKER_IMAGE}} \
cargo ledger build ${{ matrix.ledger_target }}
- name: env Setup
Expand Down
5 changes: 4 additions & 1 deletion applications/minotari_ledger_wallet/wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ include_gif = "1.0.1"
ledger_device_sdk = "1.15"
rand_core = { version = "0.6", default_features = false }
zeroize = { version = "1", default-features = false }
# We dont directly use or call ledger_secure_sdk_sys, but it is a dependency of ledger_device_sdk,
# we want to force it to a lower version so that it can run on an older rust version
ledger_secure_sdk_sys = {version= "=1.5.3"}

# once_cell defined here just to lock the version. Other dependencies may try to go to 1.19 which is incompatabile with
# ledger at this time. 1.19 removes "atomic-polyfill" and replaces it with "portable-atomic" which can not build due to
# target mismatches.
once_cell = { version = "=1.18.0", default-features = false }

[package.metadata.cargo-machete]
ignored = ["once_cell"]
ignored = ["once_cell", "ledger_secure_sdk_sys"]

[profile.release]
opt-level = 'z'
Expand Down

0 comments on commit 8bd0cc0

Please sign in to comment.