Skip to content

Commit

Permalink
Merge pull request #782 from LedgerHQ/y333/build_rust_sdk
Browse files Browse the repository at this point in the history
Build Rust SDK for each PR
  • Loading branch information
yogh333 authored Sep 25, 2024
2 parents 0a5281b + 0f1bb45 commit 33db50a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_rust_sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Rust 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
ref: master
- 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 }}

0 comments on commit 33db50a

Please sign in to comment.