Skip to content

Commit e2a0f01

Browse files
committed
fix: 尝试修复 cross 问题
1 parent 6ab6b4c commit e2a0f01

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/release-agent.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ jobs:
2020
target: x86_64-unknown-linux-gnu
2121
platform: linux-x86_64
2222
ext: ""
23-
use-cross: true
2423
- os: ubuntu-latest
2524
target: aarch64-unknown-linux-gnu
2625
platform: linux-aarch64
2726
ext: ""
28-
use-cross: true
2927
- os: macos-latest
3028
target: x86_64-apple-darwin
3129
platform: macos-x86_64
@@ -67,15 +65,16 @@ jobs:
6765
${{ runner.os }}-${{ matrix.target }}-build-
6866
${{ runner.os }}-${{ matrix.target }}-
6967
70-
- name: Build with cross
71-
if: matrix.use-cross
72-
uses: cross-rs/cross-action@v1
73-
with:
74-
command: build
75-
args: -p rust-agent-tui --release --target ${{ matrix.target }}
68+
- name: Install cross
69+
if: runner.os == 'Linux'
70+
run: cargo install cross
71+
72+
- name: Build agent-tui (Linux)
73+
if: runner.os == 'Linux'
74+
run: cross build -p rust-agent-tui --release --target ${{ matrix.target }}
7675

7776
- name: Build agent-tui (non-Linux)
78-
if: "!matrix.use-cross"
77+
if: runner.os != 'Linux'
7978
run: cargo build -p rust-agent-tui --release --target ${{ matrix.target }}
8079

8180
- name: Package binaries (Unix)

0 commit comments

Comments
 (0)