2
2
push :
3
3
branches : [ staging, trying, master ]
4
4
pull_request :
5
+ merge_group :
5
6
6
7
name : Continuous integration
7
8
8
- env :
9
- CARGO_TERM_COLOR : always
10
-
11
9
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 :
14
12
strategy :
15
13
matrix :
16
14
# All generated code should be running on stable now, MRSV is 1.59.0
17
15
toolchain : [ stable, nightly, 1.59.0 ]
18
16
target :
19
- - x86_64-unknown-linux-gnu
20
17
- riscv32i-unknown-none-elf
21
18
- riscv32imc-unknown-none-elf
22
19
- riscv32imac-unknown-none-elf
@@ -25,25 +22,25 @@ jobs:
25
22
cargo_flags : [ "--no-default-features", "--all-features" ]
26
23
include :
27
24
# Nightly is only for reference and allowed to fail
28
- - rust : nightly
25
+ - toolchain : nightly
29
26
experimental : true
30
27
runs-on : ubuntu-latest
31
28
continue-on-error : ${{ matrix.experimental || false }}
32
29
steps :
33
30
- uses : actions/checkout@v3
34
- - uses : dtolnay/rust-toolchain@master
31
+ - uses : dtolnay/rust-toolchain@${{ matrix.toolchain }}
35
32
with :
36
- toolchain : ${{ matrix.toolchain }}
37
33
targets : ${{ matrix.target }}
38
34
- name : Build library
39
35
run : cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
40
36
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.
42
38
ci-others :
43
39
strategy :
44
40
matrix :
45
41
os :
46
- - macOS-latest
42
+ - macos-latest
43
+ - ubuntu-latest
47
44
- windows-latest
48
45
cargo_flags : [ "--no-default-features", "--all-features" ]
49
46
runs-on : ${{ matrix.os }}
0 commit comments