Skip to content

Commit 2aa2b48

Browse files
committed
Build SDK and run tests with C SDK API_LEVEL_24
1 parent afee3c9 commit 2aa2b48

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ jobs:
5757
- name: Cargo build
5858
working-directory: ledger_device_sdk
5959
run: |
60+
git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk
61+
echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
62+
export LEDGER_SDK_PATH=$(realpath c_sdk)
6063
cargo build --target ${{ matrix.target }}
64+
if ($${ matrix.target } == "nanosplus" | $${ matrix.target } == "nanox"); then
65+
cargo build --target ${{ matrix.target }} --features nano_nbgl;
66+
fi
6167
6268
test:
6369
name: Run unit and integration tests
@@ -73,7 +79,7 @@ jobs:
7379
- name: Unit tests
7480
working-directory: ledger_device_sdk
7581
run: |
76-
cargo test --target ${{ matrix.target }} --features speculos --tests
82+
cargo test --target ${{ matrix.target }} --features speculos,debug --tests
7783
7884
build-apps:
7985
name: Build all Rust apps

0 commit comments

Comments
 (0)