Skip to content

Commit 6906164

Browse files
committed
towards GitHub merge queues
1 parent fae5ce9 commit 6906164

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ on:
22
push:
33
branches: [ staging, trying, master ]
44
pull_request:
5+
merge_group:
56

67
name: Continuous integration
78

8-
env:
9-
CARGO_TERM_COLOR: always
10-
119
jobs:
12-
# On Linux, we check that the crate builds and links for all the toolchains and targets.
13-
ci-linux:
10+
# We check that the crate builds and links for all the toolchains and targets.
11+
ci-riscv:
1412
strategy:
1513
matrix:
1614
# All generated code should be running on stable now, MRSV is 1.59.0
1715
toolchain: [ stable, nightly, 1.59.0 ]
1816
target:
19-
- x86_64-unknown-linux-gnu
2017
- riscv32i-unknown-none-elf
2118
- riscv32imc-unknown-none-elf
2219
- riscv32imac-unknown-none-elf
@@ -25,25 +22,25 @@ jobs:
2522
cargo_flags: [ "--no-default-features", "--all-features" ]
2623
include:
2724
# Nightly is only for reference and allowed to fail
28-
- rust: nightly
25+
- toolchain: nightly
2926
experimental: true
3027
runs-on: ubuntu-latest
3128
continue-on-error: ${{ matrix.experimental || false }}
3229
steps:
3330
- uses: actions/checkout@v3
34-
- uses: dtolnay/rust-toolchain@master
31+
- uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
3532
with:
36-
toolchain: ${{ matrix.toolchain }}
3733
targets: ${{ matrix.target }}
3834
- name: Build library
3935
run: cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
4036

41-
# On macOS and Windows, we at least make sure that the crate builds and links.
37+
# On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
4238
ci-others:
4339
strategy:
4440
matrix:
4541
os:
46-
- macOS-latest
42+
- macos-latest
43+
- ubuntu-latest
4744
- windows-latest
4845
cargo_flags: [ "--no-default-features", "--all-features" ]
4946
runs-on: ${{ matrix.os }}

.github/workflows/clippy.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
1-
name: Clippy
2-
31
on:
42
push:
53
branches: [ staging, trying, master ]
64
pull_request:
7-
branches: [ master ]
5+
merge_group:
86

9-
defaults:
10-
run:
11-
shell: bash
7+
name: Clippy lints
128

139
env:
1410
CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo
1511

1612
jobs:
1713
clippy:
1814
name: Clippy
19-
runs-on: ubuntu-latest
2015
strategy:
2116
matrix:
17+
toolchain: [ stable, nightly ]
2218
cargo_flags:
2319
- "--no-default-features"
2420
- "--all-features"
21+
include:
22+
# Nightly is only for reference and allowed to fail
23+
- toolchain: nightly
24+
experimental: true
25+
runs-on: ubuntu-latest
26+
continue-on-error: ${{ matrix.experimental || false }}
2527
steps:
26-
- name: Checkout source code
27-
uses: actions/checkout@v3
28-
29-
- name: Install Rust toolchain
30-
uses: dtolnay/rust-toolchain@stable
28+
- uses: actions/checkout@v3
29+
- uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
3130
with:
32-
toolchain: stable
3331
components: clippy
34-
3532
- name: Run clippy
3633
run: cargo clippy --all ${{ matrix.cargo_flags }} -- -D warnings

.github/workflows/rustfmt.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches: [ staging, trying, master ]
44
pull_request:
5+
merge_group:
56

67
name: Code formatting check
78

0 commit comments

Comments
 (0)