File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 13
13
matrix :
14
14
# All generated code should be running on stable now, MRSV is 1.59.0
15
15
toolchain : [ stable, nightly, 1.60.0 ]
16
+ package :
17
+ - riscv
18
+ - riscv-rt
16
19
target :
17
20
- riscv32i-unknown-none-elf
18
21
- riscv32imc-unknown-none-elf
24
27
# Nightly is only for reference and allowed to fail
25
28
- toolchain : nightly
26
29
experimental : true
30
+ - package : riscv-rt
31
+ cargo_flags :
32
+ - " --features=s-mode"
33
+ - " --features=single-hart"
27
34
runs-on : ubuntu-latest
28
35
continue-on-error : ${{ matrix.experimental || false }}
29
36
steps :
33
40
toolchain : ${{ matrix.toolchain }}
34
41
targets : ${{ matrix.target }}
35
42
- name : Build library
36
- run : cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
43
+ run : cargo build --package ${{ matrix.package }} -- target ${{ matrix.target }} ${{ matrix.cargo_flags }}
37
44
38
45
# On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
39
46
build-others :
@@ -43,13 +50,15 @@ jobs:
43
50
- macos-latest
44
51
- ubuntu-latest
45
52
- windows-latest
53
+ package :
54
+ - riscv
46
55
cargo_flags : [ "--no-default-features", "--all-features" ]
47
56
runs-on : ${{ matrix.os }}
48
57
steps :
49
58
- uses : actions/checkout@v3
50
59
- uses : dtolnay/rust-toolchain@stable
51
60
- name : Build crate for host OS
52
- run : cargo build ${{ matrix.cargo_flags }}
61
+ run : cargo build --package ${{ matrix.package }} ${{ matrix.cargo_flags }}
53
62
54
63
# Job to check that all the builds succeeded
55
64
build-check :
You can’t perform that action at this time.
0 commit comments