@@ -12,45 +12,24 @@ jobs:
12
12
matrix :
13
13
target :
14
14
- x86_64-unknown-linux-gnu
15
- - aarch64-unknown-linux-gnu
16
15
17
16
steps :
18
17
- uses : actions/checkout@v4
19
- - uses : actions-rs/cargo@v1
20
- with :
21
- command : test
22
- use-cross : true
23
- args : --target ${{ matrix.target }}
24
- - uses : actions-rs/cargo@v1
25
- with :
26
- command : run
27
- use-cross : true
28
- # Only run the test package on x86 until we find an ergonomic way
29
- # to virtualize aarch64
30
- args : --package io-uring-test --features io-uring-test/ci --target x86_64-unknown-linux-gnu
18
+ - uses : dtolnay/rust-toolchain@stable
19
+ - name : Test
20
+ run : cargo run --package io-uring-test --features io-uring-test/ci --target ${{ matrix.target }}
31
21
32
22
check-bench :
33
23
runs-on : ubuntu-latest
34
24
35
25
strategy :
36
26
fail-fast : false
37
27
38
- matrix :
39
- target :
40
- - x86_64-unknown-linux-gnu
41
-
42
28
steps :
43
29
- uses : actions/checkout@v4
44
- - uses : actions-rs/toolchain@v1
45
- with :
46
- toolchain : nightly
47
- profile : minimal
48
- components : clippy
49
- override : true
50
- - uses : actions-rs/clippy-check@v1
51
- with :
52
- token : ${{ secrets.GITHUB_TOKEN }}
53
- args : --package io-uring-bench
30
+ - uses : dtolnay/rust-toolchain@stable
31
+ - name : Bench
32
+ run : cargo bench --package io-uring-bench
54
33
55
34
check :
56
35
runs-on : ubuntu-latest
60
39
61
40
matrix :
62
41
toolchain :
63
- - nightly
42
+ - stable
64
43
- " 1.48"
65
44
target :
66
45
- x86_64-unknown-linux-gnu
@@ -70,26 +49,23 @@ jobs:
70
49
71
50
steps :
72
51
- uses : actions/checkout@v4
73
- - uses : actions-rs/toolchain@v1
74
- with :
75
- toolchain : ${{ matrix.toolchain }}
76
- target : ${{ matrix.target }}
77
- components : clippy
78
- override : true
79
- - uses : actions-rs/clippy-check@v1
52
+ - uses : dtolnay/rust-toolchain@stable
80
53
with :
81
- token : ${{ secrets.GITHUB_TOKEN }}
82
- args : --target ${{ matrix.target }}
54
+ toolchain : ${{ matrix.toolchain }}
55
+ target : ${{ matrix.target }}
56
+ components : clippy
57
+ override : true
58
+ - name : Lint
59
+ run : cargo clippy --target ${{ matrix.target }}
83
60
84
61
fmt :
85
62
name : fmt
86
63
runs-on : ubuntu-latest
87
64
steps :
88
65
- uses : actions/checkout@v4
89
- - name : Install Rust
90
- run : rustup update stable
91
- - name : Install rustfmt
92
- run : rustup component add rustfmt
66
+ - uses : dtolnay/rust-toolchain@stable
67
+ with :
68
+ components : rustfmt
93
69
94
70
- name : " rustfmt --check"
95
71
run : |
0 commit comments