Skip to content

Commit eade038

Browse files
committed
update CI
1 parent eb29d96 commit eade038

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/riscv-semihosting.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,31 @@ jobs:
3232
toolchain: ${{ matrix.toolchain }}
3333
targets: ${{ matrix.target }}
3434
- name: Build (M-mode)
35-
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features machine-mode
35+
run: cargo build --package riscv-semihosting --target ${{ matrix.target }}
3636
- name: Build (U-mode)
37-
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=user-mode
37+
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=u-mode
38+
- name: Build (no semihosting)
39+
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=no-semihosting
40+
41+
# On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
42+
build-others:
43+
strategy:
44+
matrix:
45+
os: [ macos-latest, ubuntu-latest, windows-latest ]
46+
runs-on: ${{ matrix.os }}
47+
steps:
48+
- uses: actions/checkout@v3
49+
- uses: dtolnay/rust-toolchain@stable
50+
- name: Build (no features)
51+
run: cargo build --package riscv-semihosting
52+
- name: Build (all features)
53+
run: cargo build --package riscv-semihosting --all-features
3854

3955
# Job to check that all the builds succeeded
4056
build-check:
4157
needs:
4258
- build-riscv
59+
- build-others
4360
runs-on: ubuntu-latest
4461
if: always()
4562
steps:

0 commit comments

Comments
 (0)