Skip to content

Commit 612d58d

Browse files
committed
fix build.yaml
1 parent cd474dd commit 612d58d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
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
@@ -24,6 +27,10 @@ jobs:
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:
@@ -33,7 +40,7 @@ jobs:
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:

0 commit comments

Comments
 (0)