From fa84d0b542c1c3e47261068952448bfac06f1c86 Mon Sep 17 00:00:00 2001 From: joii2020 Date: Tue, 9 Jan 2024 15:28:01 +0800 Subject: [PATCH] Fix CI: install rustfmt --- .github/workflows/rust.yml | 4 ++-- tests/Makefile | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f4da11d..52243f5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,10 +12,10 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive - - name: Format check - run: cd tests && make check-code-format - name: Install tools run: cd tests && make install-all + - name: Format check + run: cd tests && make check-code-format - name: Build contract run: make all-via-docker - name: Run all testcases diff --git a/tests/Makefile b/tests/Makefile index b7cb9da..1e2a938 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -107,7 +107,8 @@ install-ckb-tools: \ install-ckb-debugger \ install-moleculec \ install-capsule \ - install-cross + install-cross \ + install-cargo-fmt install-ckb-debugger: ifeq ($(shell uname),Darwin) @@ -135,6 +136,9 @@ endif install-cross: cargo install cross --git https://github.com/cross-rs/cross --root ./ +install-cargo-fmt: + cargo install rustfmt + litecoin_tools_url= monero_tools_url= solana_tools_url=