29
29
- name : Cargo clippy
30
30
working-directory : ${{ matrix.package }}
31
31
run : |
32
- # to be suppressed when C SDK API_LEVEL_24 is available in dev-tools
33
- git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk
34
- echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
35
- export LEDGER_SDK_PATH=$(realpath c_sdk)
36
- # ####################################### #
37
32
cargo clippy --target ${{ matrix.target }}
38
33
39
34
format :
62
57
- name : Cargo build
63
58
working-directory : ledger_device_sdk
64
59
run : |
65
- # to be suppressed when C SDK API_LEVEL_24 is available in dev-tools
66
- git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk
67
- echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
68
- export LEDGER_SDK_PATH=$(realpath c_sdk)
69
- # ####################################### #
70
60
cargo build --target ${{ matrix.target }}
71
61
if [[ "${{ matrix.target }}" == "nanosplus" || "${{ matrix.target }}" == "nanox" ]]; then
72
62
cargo build --target ${{ matrix.target }} --features nano_nbgl;
@@ -86,17 +76,10 @@ jobs:
86
76
- name : Unit tests
87
77
working-directory : ledger_device_sdk
88
78
run : |
89
- # to be suppressed when C SDK API_LEVEL_24 is available in dev-tools
90
- git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk
91
- echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
92
- export LEDGER_SDK_PATH=$(realpath c_sdk)
93
- pip install -U speculos --break-system-packages
94
- # ####################################### #
95
79
cargo test --target ${{ matrix.target }} --features speculos,debug --tests
96
80
97
81
build-apps :
98
82
name : Build all Rust apps
99
83
uses : ./.github/workflows/reusable_build_all_apps.yml
100
84
with :
101
85
rust_sdk_branch : ${{ github.ref }}
102
- c_sdk_branch : API_LEVEL_24
0 commit comments