Skip to content

Commit 34c6f03

Browse files
committed
Clone C SDK API_LEVEl_24 for clippy
1 parent 2aa2b48 commit 34c6f03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
- name: Cargo clippy
3030
working-directory: ${{ matrix.package }}
3131
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+
# ####################################### #
3237
cargo clippy --target ${{ matrix.target }}
3338
3439
format:
@@ -57,11 +62,13 @@ jobs:
5762
- name: Cargo build
5863
working-directory: ledger_device_sdk
5964
run: |
65+
# to be suppressed when C SDK API_LEVEL_24 is available in dev-tools
6066
git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk
6167
echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
6268
export LEDGER_SDK_PATH=$(realpath c_sdk)
69+
# ####################################### #
6370
cargo build --target ${{ matrix.target }}
64-
if ($${ matrix.target } == "nanosplus" | $${ matrix.target } == "nanox"); then
71+
if [[ "${{ matrix.target }}" == "nanosplus" || "${{ matrix.target }}" == "nanox" ]]; then
6572
cargo build --target ${{ matrix.target }} --features nano_nbgl;
6673
fi
6774

0 commit comments

Comments
 (0)