@@ -16,20 +16,15 @@ jobs:
16
16
17
17
steps :
18
18
- name : Checkout repository
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v4
20
20
21
- - name : Install stable components
22
- uses : actions-rs/toolchain@v1
23
- with :
24
- toolchain : stable
25
- override : true
26
- components : clippy
21
+ - name : Install toolchain
22
+ run : |
23
+ rustup toolchain install stable
24
+ rustup default stable
27
25
28
26
- name : Run clippy
29
- uses : actions-rs/clippy-check@v1
30
- with :
31
- token : ${{ secrets.GITHUB_TOKEN }}
32
- args : --verbose --release -- -D warnings
27
+ run : cargo clippy -- --deny warnings
33
28
34
29
build_and_test :
35
30
name : Rust project
@@ -40,20 +35,19 @@ jobs:
40
35
rust : ['stable']
41
36
include :
42
37
- os : ' ubuntu-20.04'
43
- rust : ' 1.41 '
38
+ rust : ' 1.63 '
44
39
runs-on : ${{ matrix.os }}
45
40
steps :
46
- - uses : actions/checkout@v2
47
- - uses : actions-rs/toolchain@v1
48
- with :
49
- toolchain : ${{ matrix.rust }}
50
- - uses : actions-rs/cargo@v1
51
- with :
52
- command : build
53
- args : --release --all-features
54
- - uses : actions/upload-artifact@v2
41
+ - uses : actions/checkout@v4
42
+ - name : Install toolchain
43
+ run : |
44
+ rustup toolchain install ${{ matrix.rust }}
45
+ rustup default ${{ matrix.rust }}
46
+ - name : Build
47
+ run : cargo build --release
48
+ - uses : actions/upload-artifact@v4
55
49
with :
56
- name : plotsweep ${{ matrix.os }}
50
+ name : plotsweep ${{ matrix.os }} rust-${{ matrix.rust }}
57
51
path : |
58
52
target/release/plotsweep
59
53
target/release/plotsweep.exe
0 commit comments