11on :
2- push :
3- branches : [ staging, trying, master ]
4- pull_request :
2+ push : # Run CI for all branches except GitHub merge queue tmp branches
3+ branches-ignore :
4+ - " gh-readonly-queue/**"
5+ pull_request : # Run CI for PRs on any branch
6+ merge_group : # Run CI for the GitHub merge queue
57
68name : Continuous integration
79
@@ -13,37 +15,30 @@ jobs:
1315 strategy :
1416 fail-fast : false
1517 matrix :
16- # All generated code should be running on stable now
1718 rust : [stable]
18-
19- # The default target we're compiling on and for
20- TARGET : [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf]
19+ target : [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf]
20+ features :
21+ - ' '
22+ - ' async-tokio,gpio_cdev,gpio_sysfs,i2c,spi'
2123
2224 include :
23- # Test MSRV
24- - rust : 1.60.0
25- TARGET : x86_64-unknown-linux-gnu
25+ - rust : 1.60.0 # MSRV
26+ target : x86_64-unknown-linux-gnu
2627
2728 # Test nightly but don't fail
2829 - rust : nightly
2930 experimental : true
30- TARGET : x86_64-unknown-linux-gnu
31+ target : x86_64-unknown-linux-gnu
3132
3233 steps :
33- - uses : actions/checkout@v2
34-
35- - uses : actions-rs/toolchain@v1
34+ - uses : actions/checkout@v4
35+ - uses : dtolnay/rust-toolchain@master
3636 with :
37- profile : minimal
3837 toolchain : ${{ matrix.rust }}
39- target : ${{ matrix.TARGET }}
40- override : true
38+ target : ${{ matrix.target }}
4139
4240 - name : Install armv7 libraries
43- if : ${{ matrix.TARGET == 'armv7-unknown-linux-gnueabihf' }}
41+ if : ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
4442 run : sudo apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
4543
46- - uses : actions-rs/cargo@v1
47- with :
48- command : check
49- args : --target=${{ matrix.TARGET }}
44+ - run : cargo check --target=${{ matrix.target }} --features=${{ matrix.features }}
0 commit comments