File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,24 +22,26 @@ jobs:
2222 bin : inputshare-client
2323 steps :
2424 - name : Checkout repository
25- uses : actions/checkout@v2
25+ uses : actions/checkout@v3
2626 with :
2727 fetch-depth : 0
2828
2929 - name : Install Rust
30- uses : actions-rs/ toolchain@v1
30+ uses : dtolnay/rust- toolchain@stable
3131 with :
32- toolchain : stable
33- profile : minimal
34- override : true
3532 target : ${{ matrix.target }}
33+
34+ - name : Install Cross
35+ if : runner.os == 'Linux'
36+ run : cargo install cross --git https://github.com/cross-rs/cross
37+
38+ - name : Build binary (Cargo)
39+ if : runner.os != 'Linux'
40+ run : cargo build --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose
3641
37- - name : Build binary
38- uses : actions-rs/cargo@v1
39- with :
40- command : build
41- args : --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose
42- use-cross : ${{ runner.os == 'Linux' }}
42+ - name : Build binary (Cross)
43+ if : runner.os == 'Linux'
44+ run : cross build --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose
4345
4446 - name : Package (*nix)
4547 if : runner.os != 'Windows'
You can’t perform that action at this time.
0 commit comments