Skip to content

Commit 89285d1

Browse files
committed
Add ledger signer
1 parent 9099e90 commit 89285d1

File tree

16 files changed

+3305
-184
lines changed

16 files changed

+3305
-184
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- master
1010
schedule:
11-
- cron: '15 0 * * *' # every day at 00:15 UTC
11+
- cron: "15 0 * * *" # every day at 00:15 UTC
1212

1313
env:
1414
CARGO_TERM_COLOR: always
@@ -59,7 +59,7 @@ jobs:
5959
- name: Update local dependency repositories
6060
run: sudo apt-get update
6161
- name: Install build dependencies
62-
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman pkg-config libssl-dev
62+
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman pkg-config libssl-dev libdbus-1-dev libusb-1.0-0-dev
6363
- name: Install rust
6464
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)
6565
- name: Build
@@ -117,9 +117,9 @@ jobs:
117117
run_tests_on_trezor_preparation:
118118
runs-on: ubuntu-latest
119119
steps:
120-
# Note: we need to mimic the directory structure of the run_tests_on_trezor job, otherwise nextest
121-
# will fail to execute archived tests. So we checkout the source code to "./mintlayer-core".
122-
# (Also note that because of this the resulting path of the source dir will be "/.../mintlayer-core/mintlayer-core/mintlayer-core")
120+
# Note: we need to mimic the directory structure of the run_tests_on_trezor job, otherwise nextest
121+
# will fail to execute archived tests. So we checkout the source code to "./mintlayer-core".
122+
# (Also note that because of this the resulting path of the source dir will be "/.../mintlayer-core/mintlayer-core/mintlayer-core")
123123
- name: Checkout the core repository
124124
uses: actions/checkout@v4
125125
with:
@@ -227,13 +227,12 @@ jobs:
227227
# Note: since we haven't installed Cargo in this job, we have to execute "cargo-nextest nextest"
228228
# instead of "cargo nextest".
229229
- name: Run tests in the emulator
230-
run:
231-
nix-shell --run "
232-
poetry run core/emu.py
233-
--headless --quiet --temporary-profile
234-
--mnemonic \"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about\"
235-
--command env --chdir ../mintlayer-core
236-
cargo-nextest nextest run --archive-file tests.tar.zst -j1 trezor_signer
230+
run: nix-shell --run "
231+
poetry run core/emu.py
232+
--headless --quiet --temporary-profile
233+
--mnemonic \"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about\"
234+
--command env --chdir ../mintlayer-core
235+
cargo-nextest nextest run --archive-file tests.tar.zst -j1 trezor_signer
237236
"
238237
working-directory: ./mintlayer-trezor-firmware
239238
timeout-minutes: 10

.github/workflows/code_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Update local dependency repositories
2626
run: sudo apt-get update
2727
- name: Install dependencies
28-
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml
28+
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml libdbus-1-dev libusb-1.0-0-dev
2929

3030
- name: Install rust
3131
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)

0 commit comments

Comments
 (0)