-
Notifications
You must be signed in to change notification settings - Fork 29
31 lines (29 loc) · 979 Bytes
/
build_rust_sdk.yml
File metadata and controls
31 lines (29 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build Rust SDK on latest C SDK
on:
workflow_dispatch:
pull_request:
jobs:
test_build_rust:
name: Build Rust SDK
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
strategy:
matrix:
target: ["nanox", "nanosplus", "stax", "flex"]
steps:
- name: Clone C SDK
uses: actions/checkout@v4
with:
path: c_sdk
- name: Clone Rust SDK
uses: actions/checkout@v4
with:
repository: LedgerHQ/ledger-device-rust-sdk
ref: master
path: rust_sdk
- name: Build Rust SDK
working-directory: rust_sdk/ledger_device_sdk
run: |
export LEDGER_SDK_PATH=$GITHUB_WORKSPACE/c_sdk
cargo +$RUST_NIGHTLY build --target ${{ matrix.target }}