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 1313 matrix :
1414 # All generated code should be running on stable now, MRSV is 1.59.0
1515 toolchain : [ stable, nightly, 1.60.0 ]
16+ package :
17+ - riscv
18+ - riscv-rt
1619 target :
1720 - riscv32i-unknown-none-elf
1821 - riscv32imc-unknown-none-elf
2427 # Nightly is only for reference and allowed to fail
2528 - toolchain : nightly
2629 experimental : true
30+ - package : riscv-rt
31+ cargo_flags :
32+ - " --features=s-mode"
33+ - " --features=single-hart"
2734 runs-on : ubuntu-latest
2835 continue-on-error : ${{ matrix.experimental || false }}
2936 steps :
3340 toolchain : ${{ matrix.toolchain }}
3441 targets : ${{ matrix.target }}
3542 - 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 }}
3744
3845 # On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
3946 build-others :
@@ -43,13 +50,15 @@ jobs:
4350 - macos-latest
4451 - ubuntu-latest
4552 - windows-latest
53+ package :
54+ - riscv
4655 cargo_flags : [ "--no-default-features", "--all-features" ]
4756 runs-on : ${{ matrix.os }}
4857 steps :
4958 - uses : actions/checkout@v3
5059 - uses : dtolnay/rust-toolchain@stable
5160 - name : Build crate for host OS
52- run : cargo build ${{ matrix.cargo_flags }}
61+ run : cargo build --package ${{ matrix.package }} ${{ matrix.cargo_flags }}
5362
5463 # Job to check that all the builds succeeded
5564 build-check :
You can’t perform that action at this time.
0 commit comments