File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -22,24 +22,26 @@ jobs:
22
22
bin : inputshare-client
23
23
steps :
24
24
- name : Checkout repository
25
- uses : actions/checkout@v2
25
+ uses : actions/checkout@v3
26
26
with :
27
27
fetch-depth : 0
28
28
29
29
- name : Install Rust
30
- uses : actions-rs/ toolchain@v1
30
+ uses : dtolnay/rust- toolchain@stable
31
31
with :
32
- toolchain : stable
33
- profile : minimal
34
- override : true
35
32
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
36
41
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
43
45
44
46
- name : Package (*nix)
45
47
if : runner.os != 'Windows'
You can’t perform that action at this time.
0 commit comments