1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- rust : [stable, 1.31.0 ]
16+ rust : [stable]
1717 TARGET :
1818 - x86_64-unknown-linux-gnu
1919 - x86_64-unknown-linux-musl
@@ -26,16 +26,14 @@ jobs:
2626 - thumbv7m-none-eabi
2727
2828 steps :
29- - uses : actions/checkout@v2
30- - uses : actions-rs/ toolchain@v1
29+ - uses : actions/checkout@v4
30+ - uses : dtolnay/rust- toolchain@master
3131 with :
32- profile : minimal
3332 toolchain : ${{ matrix.rust }}
3433 target : ${{ matrix.TARGET }}
35- override : true
3634
3735 - name : Checkout CI scripts
38- uses : actions/checkout@v2
36+ uses : actions/checkout@v4
3937 with :
4038 repository : ' eldruin/rust-driver-ci-scripts'
4139 ref : ' master'
4543 if : ${{ ! contains(matrix.TARGET, 'x86_64') }}
4644
4745 - name : Build
48- uses : actions-rs/cargo@v1
49- with :
50- command : build
51- args : --target=${{ matrix.TARGET }}
46+ run : cargo build --target=${{ matrix.TARGET }}
5247
5348 checks :
5449 name : Checks
@@ -60,89 +55,72 @@ jobs:
6055 - x86_64-unknown-linux-gnu
6156
6257 steps :
63- - uses : actions/checkout@v2
64- - uses : actions-rs/ toolchain@v1
58+ - uses : actions/checkout@v4
59+ - uses : dtolnay/rust- toolchain@master
6560 with :
66- profile : minimal
6761 toolchain : ${{ matrix.rust }}
6862 target : ${{ matrix.TARGET }}
69- override : true
7063 components : rustfmt
7164
7265 - name : Doc
73- uses : actions-rs/cargo@v1
74- with :
75- command : doc
66+ run : cargo doc
7667
7768 - name : Formatting
78- uses : actions-rs/cargo@v1
79- with :
80- command : fmt
81- args : --all -- --check
69+ run : cargo fmt --all -- --check
8270
8371 clippy :
8472 name : Clippy
8573 runs-on : ubuntu-latest
8674 strategy :
8775 matrix :
88- rust : [1.54.0 ]
76+ rust : [stable ]
8977 TARGET :
9078 - x86_64-unknown-linux-gnu
9179
9280 steps :
93- - uses : actions/checkout@v2
94- - uses : actions-rs/ toolchain@v1
81+ - uses : actions/checkout@v4
82+ - uses : dtolnay/rust- toolchain@master
9583 with :
96- profile : minimal
9784 toolchain : ${{ matrix.rust }}
9885 target : ${{ matrix.TARGET }}
99- override : true
10086 components : clippy
10187
102- - name : Clippy
103- uses : actions-rs/clippy-check@v1
104- with :
105- token : ${{ secrets.GITHUB_TOKEN }}
88+ - run : cargo clippy --message-format=json --all-features
10689
10790 test :
10891 name : Tests
10992 runs-on : ubuntu-latest
11093 strategy :
11194 matrix :
112- rust : [stable, beta ]
95+ rust : [stable]
11396 TARGET : [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
11497 steps :
115- - uses : actions/checkout@v2
116- - uses : actions-rs/ toolchain@v1
98+ - uses : actions/checkout@v4
99+ - uses : dtolnay/rust- toolchain@master
117100 with :
118- profile : minimal
119101 toolchain : ${{ matrix.rust }}
120102 target : ${{ matrix.TARGET }}
121- override : true
122103
123104 - name : Test
124- uses : actions-rs/cargo@v1
125- with :
126- command : test
127- args : --target=${{ matrix.TARGET }}
105+ run : cargo test --target=${{ matrix.TARGET }}
128106
129107 coverage :
130108 name : Coverage
131109 runs-on : ubuntu-latest
132110 steps :
133111 - name : Checkout repository
134- uses : actions/checkout@v2
112+ uses : actions/checkout@v4
135113
136114 - name : Install stable toolchain
137- uses : actions-rs/ toolchain@v1
115+ uses : dtolnay/rust- toolchain@master
138116 with :
139117 toolchain : stable
140- override : true
141118
142- - name : Run cargo-tarpaulin
143- uses :
actions-rs/[email protected] 144- with :
145- args : ' --out Lcov -- --test-threads 1'
119+ - name : Install cargo-llvm-cov
120+ uses : taiki-e/install-action@cargo-llvm-cov
121+
122+ - name : Generate code coverage
123+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
146124
147125 - name : upload to Coveralls
148126 uses : coverallsapp/github-action@master
0 commit comments