Browse Source

fix(prototyper): the clippy check failed due to target uninstalled. (#153)

* fix(prototyper): the clippy check failed due to target uninstalled.

Install the riscv4imac-unknown-none-elf target.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>

* fix(prototyper): build prototyper before running cargo clippy.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>

* fix(prototyper): install necessary cargo tools.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>

* fix(prototyper): typo in the comment of prototyper action.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>

---------

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>
Ricardo Ren 1 month ago
parent
commit
4980eab598
1 changed files with 8 additions and 1 deletions
  1. 8 1
      .github/workflows/prototyper.yml

+ 8 - 1
.github/workflows/prototyper.yml

@@ -34,7 +34,14 @@ jobs:
             cargo test -p rustsbi-prototyper
 
       - name: Install required cargo
-        run: cargo install clippy-sarif sarif-fmt
+        run: cargo install clippy-sarif sarif-fmt cargo-binutils
+
+      - name: Install required target
+        run: rustup target add riscv64imac-unknown-none-elf
+      
+      # Build the prototyper is needed before running cargo clippy for it, as the build is dependent on some logic controlled by xtask.
+      - name: Build cargo prototyper
+        run: cargo prototyper
 
       - name: Run rust-clippy
         run: |