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