@@ -29,39 +29,30 @@ jobs:
2929 run : sudo apt-get install libxml2-utils
3030
3131 - name : Checkout code
32- uses : actions/checkout@v1
32+ uses : actions/checkout@v4
3333
3434 - name : Setup rust toolchain
35- uses : actions-rs/ toolchain@v1
35+ uses : dtolnay/rust- toolchain@stable
3636 with :
37- profile : minimal
3837 toolchain : ${{ matrix.rust }}
39- override : true
4038
4139 - name : Run cargo test
42- uses : actions-rs/cargo@v1
43- with :
44- command : test
40+ run : cargo test
4541
4642 - name : Build release binary
47- uses : actions-rs/cargo@v1
48- with :
49- command : build
50- args : --release
43+ run : cargo build --release
5144
5245 rustfmt :
5346 name : Rustfmt
5447 runs-on : ubuntu-latest
5548 steps :
5649 - name : Checkout code
57- uses : actions/checkout@v1
50+ uses : actions/checkout@v4
5851
5952 - name : Setup rust toolchain
60- uses : actions-rs/ toolchain@v1
53+ uses : dtolnay/rust- toolchain@stable
6154 with :
62- profile : minimal
6355 toolchain : stable
64- override : true
6556 components : rustfmt
6657
6758 - name : Check formatting
@@ -72,18 +63,13 @@ jobs:
7263 runs-on : ubuntu-latest
7364 steps :
7465 - name : Checkout code
75- uses : actions/checkout@v1
66+ uses : actions/checkout@v4
7667
7768 - name : Setup rust toolchain
78- uses : actions-rs/ toolchain@v1
69+ uses : dtolnay/rust- toolchain@stable
7970 with :
80- profile : minimal
8171 toolchain : stable
82- override : true
8372 components : clippy
8473
8574 - name : Run cargo clippy checks
86- uses : actions-rs/cargo@v1
87- with :
88- command : clippy
89- args : -- -D warnings
75+ run : cargo clippy -- -D warnings
0 commit comments