Skip to content

Commit 3965006

Browse files
committed
update
1 parent 2007992 commit 3965006

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ jobs:
164164
165165
- name: Build with Cargo (Unix)
166166
if: runner.os != 'Windows' && ${{ !matrix.cross }}
167+
shell: bash
167168
run: |
168-
#!/bin/bash
169-
170169
rustup target add ${{ matrix.target }}
171170
172-
if [ "${{ matrix.target }}" = "loongarch64-unknown-linux-gnu" ]; then
171+
if [ "${{ matrix.target }}" eq "loongarch64-unknown-linux-gnu" ]; then
173172
# 定义远程文件 URL 和本地目录
174173
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"
175174
TARGET_DIR="$HOME/.local/share/loongarch64-unknown-linux-gnu"
@@ -205,6 +204,7 @@ jobs:
205204
- name: Build with Cargo (Windows)
206205
if: runner.os == 'Windows' && ${{ !matrix.cross }}
207206
run: |
207+
rustup target add ${{ matrix.target }}
208208
cargo build --release --locked --target=${{ matrix.target }} ${{ matrix.cargo_flags }}
209209
210210
- name: Compress binaries

0 commit comments

Comments
 (0)