From f0ff5f1f030cc915f7c1fc939e6f4ff94ac56889 Mon Sep 17 00:00:00 2001 From: Itsusinn Date: Fri, 20 Sep 2024 20:43:25 +0800 Subject: [PATCH] fix --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 130c13467..ac4d7c583 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -189,12 +189,13 @@ jobs: toolchain: ${{ matrix.toolchain || 'nightly' }} target: ${{ matrix.target }} components: ${{ matrix.components || 'rustfmt, clippy' }} + - name: Install Protoc uses: arduino/setup-protoc@v3 with: version: "23.x" repo-token: ${{ secrets.GITHUB_TOKEN }} - + - name: Set environment variables run: | echo "RUSTFLAGS=${RUSTFLAGS}" >> $GITHUB_ENV @@ -203,6 +204,13 @@ jobs: env: RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} + - name: Install cross-rs/cross + uses: clechasseur/rs-cargo@v2 + with: + use-cross: false + command: install + args: cross --target ${{ matrix.target }} + - name: Cargo fmt uses: clechasseur/rs-cargo@v2 with: