Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Dec 29, 2023
1 parent eb29d96 commit eade038
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/riscv-semihosting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,31 @@ jobs:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Build (M-mode)
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features machine-mode
run: cargo build --package riscv-semihosting --target ${{ matrix.target }}
- name: Build (U-mode)
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=user-mode
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=u-mode
- name: Build (no semihosting)
run: cargo build --package riscv-semihosting --target ${{ matrix.target }} --features=no-semihosting

# On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
build-others:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Build (no features)
run: cargo build --package riscv-semihosting
- name: Build (all features)
run: cargo build --package riscv-semihosting --all-features

# Job to check that all the builds succeeded
build-check:
needs:
- build-riscv
- build-others
runs-on: ubuntu-latest
if: always()
steps:
Expand Down

0 comments on commit eade038

Please sign in to comment.