From 5c9e70d8ca2eccdc8dff4fd34625f29bccb62258 Mon Sep 17 00:00:00 2001 From: Alexis Grojean Date: Thu, 16 Nov 2023 10:06:41 +0100 Subject: [PATCH] Update CI --- .github/workflows/rust.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2432582f..47d799e1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,22 +37,22 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: -p ledger_device_rust_sdk --target ledger_device_rust_sdk/${{ matrix.target }}.json - fmt: + args: -p ledger_device_sdk --target ledger_device_sdk/${{ matrix.target }}.json + + format: + name: Check code formatting runs-on: ubuntu-latest + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest + steps: - - name: Install toolchains - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - components: rust-src, rustfmt - - uses: actions/checkout@v2 - - name: Cargo fmt + - name: Checkout + uses: actions/checkout@v2 + - name: Run cargo fmt uses: actions-rs/cargo@v1 with: command: fmt - args: -p ledger_device_rust_sdk --all -- --check + args: -p ledger_device_sdk --all -- --check build: runs-on: ubuntu-latest @@ -78,7 +78,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: -p ledger_device_rust_sdk --target ledger_device_rust_sdk/${{ matrix.target }}.json + args: -p ledger_device_sdk --target ledger_device_sdk/${{ matrix.target }}.json test: runs-on: ubuntu-latest @@ -107,4 +107,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: -p ledger_device_rust_sdk --target ledger_device_rust_sdk/${{ matrix.target }}.json --features speculos + args: -p ledger_device_sdk --target ledger_device_sdk/${{ matrix.target }}.json --features speculos