From f0e2d6e663a2fe48d889b8c5ea7af43765f05919 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Mon, 2 Sep 2024 14:11:12 +0800 Subject: [PATCH] fix: use 'target' for 'actions-rust-lang/setup-rust-toolchain' to fix cross build failed (#4661) --- .github/actions/build-macos-artifacts/action.yml | 2 +- .github/actions/build-windows-artifacts/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-macos-artifacts/action.yml b/.github/actions/build-macos-artifacts/action.yml index 76a70ea0c15a..7c46574e850a 100644 --- a/.github/actions/build-macos-artifacts/action.yml +++ b/.github/actions/build-macos-artifacts/action.yml @@ -42,7 +42,7 @@ runs: - name: Install rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - targets: ${{ inputs.arch }} + target: ${{ inputs.arch }} - name: Start etcd # For integration tests. if: ${{ inputs.disable-run-tests == 'false' }} diff --git a/.github/actions/build-windows-artifacts/action.yml b/.github/actions/build-windows-artifacts/action.yml index 94ae01d6e1c6..0cb8884cbd1e 100644 --- a/.github/actions/build-windows-artifacts/action.yml +++ b/.github/actions/build-windows-artifacts/action.yml @@ -27,7 +27,7 @@ runs: - name: Install rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - targets: ${{ inputs.arch }} + target: ${{ inputs.arch }} components: llvm-tools-preview - name: Rust Cache