Skip to content

Commit

Permalink
update ci worflow for cargo-ledger support
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Dec 8, 2023
1 parent f8d66ea commit 282b934
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 282b934

Please sign in to comment.