@@ -2,9 +2,9 @@ name: Rust
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99env :
1010 CARGO_TERM_COLOR : always
@@ -13,58 +13,58 @@ jobs:
1313 build_and_test :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v2
17- - run : rm /home/runner/.cargo/bin/rustfmt
18- - uses : actions-rs/toolchain@v1
19- id : rust
20- with :
21- toolchain : nightly
22- profile : minimal
23- default : true
24- - uses : actions-rs/cargo@v1
25- with :
26- use-cross : true
27- command : build
28- - uses : actions-rs/cargo@v1
29- with :
30- use-cross : true
31- command : test
32- - uses : actions/cache@v2
33- with :
34- path : |
35- ~/.cargo/bin/
36- ~/.cargo/registry/index/
37- ~/.cargo/registry/cache/
38- ~/.cargo/git/db/
39- target/
40- key : ${{ runner.os }}-${{ steps.rust.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16+ - uses : actions/checkout@v3
17+ - run : rm /home/runner/.cargo/bin/rustfmt
18+ - uses : actions-rs/toolchain@v1
19+ id : rust
20+ with :
21+ toolchain : nightly
22+ profile : minimal
23+ default : true
24+ - uses : actions-rs/cargo@v1
25+ with :
26+ use-cross : true
27+ command : build
28+ - uses : actions-rs/cargo@v1
29+ with :
30+ use-cross : true
31+ command : test
32+ - uses : actions/cache@v2
33+ with :
34+ path : |
35+ ~/.cargo/bin/
36+ ~/.cargo/registry/index/
37+ ~/.cargo/registry/cache/
38+ ~/.cargo/git/db/
39+ target/
40+ key : ${{ runner.os }}-${{ steps.rust.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4141 cross :
4242 runs-on : ubuntu-latest
4343 steps :
44- - uses : actions/checkout@v2
45- - run : rm /home/runner/.cargo/bin/rustfmt /home/runner/.cargo/bin/cargo-fmt
46- - uses : actions-rs/toolchain@v1
47- id : rust
48- with :
49- toolchain : nightly
50- profile : minimal
51- override : true
52- target : x86_64-unknown-linux-musl
53- - uses : actions-rs/cargo@v1
54- with :
55- use-cross : true
56- command : build
57- args : --release --target x86_64-unknown-linux-musl
58- - uses : actions/cache@v2
59- with :
60- path : |
61- ~/.cargo/bin/
62- ~/.cargo/registry/index/
63- ~/.cargo/registry/cache/
64- ~/.cargo/git/db/
65- target/
66- key : ${{ runner.os }}-${{ steps.rust.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.lock') }}
67- - uses : actions/upload-artifact@v2
68- with :
69- name : kirby-s3-musl
70- path : target/x86_64-unknown-linux-musl/release/kirby-s3
44+ - uses : actions/checkout@v2
45+ - run : rm /home/runner/.cargo/bin/rustfmt /home/runner/.cargo/bin/cargo-fmt
46+ - uses : actions-rs/toolchain@v1
47+ id : rust
48+ with :
49+ toolchain : nightly
50+ profile : minimal
51+ override : true
52+ target : x86_64-unknown-linux-musl
53+ - uses : actions-rs/cargo@v1
54+ with :
55+ use-cross : true
56+ command : build
57+ args : --release --target x86_64-unknown-linux-musl
58+ - uses : actions/cache@v2
59+ with :
60+ path : |
61+ ~/.cargo/bin/
62+ ~/.cargo/registry/index/
63+ ~/.cargo/registry/cache/
64+ ~/.cargo/git/db/
65+ target/
66+ key : ${{ runner.os }}-${{ steps.rust.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.lock') }}
67+ - uses : actions/upload-artifact@v4
68+ with :
69+ name : kirby-s3-musl
70+ path : target/x86_64-unknown-linux-musl/release/kirby-s3
0 commit comments