diff --git a/.github/workflows/build_rust_sdk.yml b/.github/workflows/build_rust_sdk.yml new file mode 100644 index 000000000..5375c164c --- /dev/null +++ b/.github/workflows/build_rust_sdk.yml @@ -0,0 +1,26 @@ +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 + uses: actions/checkout@v4 + with: + repository: LedgerHQ/ledger-device-rust-sdk + ref: master + path: rust_sdk + - name: Cargo build + working-directory: rust_sdk/ledger_device_sdk + run: | + cargo +$RUST_NIGHTLY build --target ${{ matrix.target }}