File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,11 @@ jobs:
164
164
165
165
- name : Build with Cargo (Unix)
166
166
if : runner.os != 'Windows' && ${{ !matrix.cross }}
167
+ shell : bash
167
168
run : |
168
- #!/bin/bash
169
-
170
169
rustup target add ${{ matrix.target }}
171
170
172
- if [ "${{ matrix.target }}" = "loongarch64-unknown-linux-gnu" ]; then
171
+ if [ "${{ matrix.target }}" eq "loongarch64-unknown-linux-gnu" ]; then
173
172
# 定义远程文件 URL 和本地目录
174
173
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"
175
174
TARGET_DIR="$HOME/.local/share/loongarch64-unknown-linux-gnu"
@@ -205,6 +204,7 @@ jobs:
205
204
- name : Build with Cargo (Windows)
206
205
if : runner.os == 'Windows' && ${{ !matrix.cross }}
207
206
run : |
207
+ rustup target add ${{ matrix.target }}
208
208
cargo build --release --locked --target=${{ matrix.target }} ${{ matrix.cargo_flags }}
209
209
210
210
- name : Compress binaries
You can’t perform that action at this time.
0 commit comments