From 282b93432ce3de957c18f932699ebc50886a0aa5 Mon Sep 17 00:00:00 2001 From: GroM Date: Fri, 8 Dec 2023 11:26:03 +0100 Subject: [PATCH] update ci worflow for cargo-ledger support --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 511d60a7..4fb8b1a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,19 @@ jobs: command: clippy args: --target ${{ matrix.target }} + clippy-cargo-ledger: + name: Run static analysis for cargo-ledger + runs-on: ubuntu-latest + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest + steps: + - name: Cargo clippy for cargo-ledger + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -p cargo-ledger --no-deps + toolchain: "+1.72.0" + format: name: Check code formatting runs-on: ubuntu-latest @@ -62,6 +75,21 @@ jobs: command: build args: -p ledger_device_sdk --target ${{ matrix.target }} + build-cargo-ledger: + name: Build SDK + runs-on: ubuntu-latest + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest + steps: + - name: Clone + uses: actions/checkout@v4 + - name: Cargo build + uses: actions-rs/cargo@v1 + with: + command: build + args: -p cargo-ledger + toolchain: "+1.72.0" + test: name: Run unit and integration tests runs-on: ubuntu-latest