File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments