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
+ # ####################################### #
32
37
cargo clippy --target ${{ matrix.target }}
33
38
34
39
format :
57
62
- name : Cargo build
58
63
working-directory : ledger_device_sdk
59
64
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
+ # ####################################### #
60
70
cargo build --target ${{ matrix.target }}
71
+ if [[ "${{ matrix.target }}" == "nanosplus" || "${{ matrix.target }}" == "nanox" ]]; then
72
+ cargo build --target ${{ matrix.target }} --features nano_nbgl;
73
+ fi
61
74
62
75
test :
63
76
name : Run unit and integration tests
@@ -73,10 +86,17 @@ jobs:
73
86
- name : Unit tests
74
87
working-directory : ledger_device_sdk
75
88
run : |
76
- cargo test --target ${{ matrix.target }} --features speculos --tests
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
+ cargo test --target ${{ matrix.target }} --features speculos,debug --tests
77
96
78
97
build-apps :
79
98
name : Build all Rust apps
80
99
uses : ./.github/workflows/reusable_build_all_apps.yml
81
100
with :
82
101
rust_sdk_branch : ${{ github.ref }}
102
+ c_sdk_branch : API_LEVEL_24
0 commit comments