Skip to content

Commit 5487e9f

Browse files
committed
update
1 parent 86c3a00 commit 5487e9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ jobs:
166166
if: runner.os != 'windows' && ${{ matrix.cross }} == false
167167
shell: bash
168168
run: |
169+
rustup target add ${{ matrix.target }}
170+
169171
if [ ${{ matrix.target }} = "loongarch64-unknown-linux-gnu" ]; then
170172
# 定义远程文件 URL 和本地目录
171173
REMOTE_URL="https://github.com/loongson/build-tools/releases/download/2024.06.01/x86_64-cross-tools-loongarch64-binutils_2.42-gcc_14.1.0-glibc_2.39.tar.xz"
@@ -197,7 +199,6 @@ jobs:
197199
export LINKER_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-gcc
198200
fi
199201
200-
rustup target add ${{ matrix.target }}
201202
cargo build --release --locked --target=${{ matrix.target }} ${{ matrix.cargo_flags }}
202203
203204
- name: Build with Cargo (Windows)

0 commit comments

Comments
 (0)