@@ -19,141 +19,87 @@ jobs:
1919 rust : [stable]
2020 TARGET :
2121 - aarch64-unknown-linux-gnu
22+ - aarch64-unknown-linux-musl
2223 - arm-unknown-linux-gnueabi
24+ # - arm-unknown-linux-gnueabihf # not supported by the CI at the moment
2325 - armv7-unknown-linux-gnueabihf
2426 - i686-unknown-linux-gnu
2527 - i686-unknown-linux-musl
26- - mips-unknown-linux-gnu
27- - mips64-unknown-linux-gnuabi64
28- - mips64el-unknown-linux-gnuabi64
29- - mipsel-unknown-linux-gnu
28+ # - loongarch64-unknown-linux-gnu
3029 - powerpc-unknown-linux-gnu
3130 # - powerpc64-unknown-linux-gnu
3231 - powerpc64le-unknown-linux-gnu
32+ - riscv64gc-unknown-linux-gnu
3333 - s390x-unknown-linux-gnu
3434 - x86_64-unknown-linux-gnu
3535 - x86_64-unknown-linux-musl
3636
3737 include :
38- - rust : 1.28.0
39- TARGET : x86_64-unknown-linux-gnu
40-
4138 # Test nightly but don't fail
4239 - rust : nightly
4340 TARGET : x86_64-unknown-linux-gnu
4441 experimental : true
4542
4643 steps :
47- - uses : actions/checkout@v2
48- - uses : actions-rs/ toolchain@v1
44+ - uses : actions/checkout@v5
45+ - uses : dtolnay/rust- toolchain@master
4946 with :
50- profile : minimal
5147 toolchain : ${{ matrix.rust }}
52- target : ${{ matrix.TARGET }}
53- override : true
48+ target : ${{ matrix.target }}
5449
55- - name : Build
56- uses : actions-rs/cargo@v1
57- with :
58- command : build
59- args : --target=${{ matrix.TARGET }}
50+ - run : cargo build --target=${{ matrix.TARGET }}
6051
6152 - name : Test
62- uses : actions-rs/cargo @v1
53+ uses : taiki-e/setup-cross-toolchain-action @v1
6354 with :
64- use-cross : true
65- command : test
66- args : --target=${{ matrix.TARGET }}
55+ target : ${{ matrix.TARGET }}
56+ - run : cargo test --target=${{ matrix.TARGET }}
6757
6858 ci-linux-msrv :
69- name : CI
59+ name : CI-MSRV
7060 runs-on : ubuntu-latest
71- strategy :
72- matrix :
73- rust : [1.28.0]
74- TARGET :
75- - x86_64-unknown-linux-gnu
76-
7761 steps :
78- - uses : actions/checkout@v2
79- - uses : actions-rs/toolchain@v1
80- with :
81- profile : minimal
82- toolchain : ${{ matrix.rust }}
83- target : ${{ matrix.TARGET }}
84- override : true
85-
86- - name : Build
87- uses : actions-rs/cargo@v1
88- with :
89- command : build
90- args : --target=${{ matrix.TARGET }}
91-
92- - name : Test
93- uses : actions-rs/cargo@v1
94- with :
95- use-cross : true
96- command : test
97- args : --target=${{ matrix.TARGET }}
62+ - uses : actions/checkout@v5
63+ - uses : dtolnay/rust-toolchain@1.28.0
64+ - run : cargo build
65+ - run : cargo test
9866
9967 ci-macos :
100- name : CI
101- runs-on : macos-11
102-
103- strategy :
104- matrix :
105- rust : [stable, 1.28.0]
106- TARGET : [x86_64-apple-darwin]
68+ name : CI-macOS
69+ runs-on : macos-latest
10770
10871 steps :
109- - uses : actions/checkout@v2
72+ - uses : actions/checkout@v5
73+ - uses : dtolnay/rust-toolchain@stable
74+ - run : cargo build
11075
111- - uses : actions-rs/toolchain@v1
112- with :
113- profile : minimal
114- toolchain : ${{ matrix.rust }}
115- target : ${{ matrix.TARGET }}
116- override : true
117-
118- - uses : actions-rs/cargo@v1
119- with :
120- command : build
121- args : --target=${{ matrix.TARGET }}
76+ ci-macos-msrv :
77+ name : CI-macOS-MSRV
78+ runs-on : macos-13 # Latest for Intel-based CPUs
79+ steps :
80+ - uses : actions/checkout@v5
81+ - uses : dtolnay/rust-toolchain@1.28.0
82+ - run : cargo build
12283
12384 checks :
12485 runs-on : ubuntu-latest
12586
12687 steps :
127- - uses : actions/checkout@v2
128- - uses : actions-rs/ toolchain@v1
88+ - uses : actions/checkout@v5
89+ - uses : dtolnay/rust- toolchain@stable
12990 with :
130- profile : minimal
131- toolchain : stable
13291 components : rustfmt
13392
134- - name : Doc
135- uses : actions-rs/cargo@v1
136- with :
137- command : doc
138-
139- - name : Formatting
140- uses : actions-rs/cargo@v1
141- with :
142- command : fmt
143- args : --all -- --check
93+ - run : cargo doc
94+ - run : cargo fmt --all -- --check
14495
14596 clippy :
14697 runs-on : ubuntu-latest
14798 env :
14899 RUSTFLAGS : ' --allow warnings'
149100 steps :
150- - uses : actions/checkout@v2
151- - uses : actions-rs/ toolchain@v1
101+ - uses : actions/checkout@v5
102+ - uses : dtolnay/rust- toolchain@1.91.1
152103 with :
153- profile : minimal
154- toolchain : 1.62.0
155104 components : clippy
156-
157- - uses : actions-rs/clippy-check@v1
158- with :
159- token : ${{ secrets.GITHUB_TOKEN }}
105+ - run : cargo clippy --all-targets
0 commit comments