Skip to content

Commit

Permalink
fix build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Nov 17, 2023
1 parent cd474dd commit 612d58d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
matrix:
# All generated code should be running on stable now, MRSV is 1.59.0
toolchain: [ stable, nightly, 1.60.0 ]
package:
- riscv
- riscv-rt
target:
- riscv32i-unknown-none-elf
- riscv32imc-unknown-none-elf
Expand All @@ -24,6 +27,10 @@ jobs:
# Nightly is only for reference and allowed to fail
- toolchain: nightly
experimental: true
- package: riscv-rt
cargo_flags:
- "--features=s-mode"
- "--features=single-hart"
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
steps:
Expand All @@ -33,7 +40,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Build library
run: cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
run: cargo build --package ${{ matrix.package }} --target ${{ matrix.target }} ${{ matrix.cargo_flags }}

# On MacOS, Ubuntu, and Windows, we at least make sure that the crate builds and links.
build-others:
Expand All @@ -43,13 +50,15 @@ jobs:
- macos-latest
- ubuntu-latest
- windows-latest
package:
- riscv
cargo_flags: [ "--no-default-features", "--all-features" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Build crate for host OS
run: cargo build ${{ matrix.cargo_flags }}
run: cargo build --package ${{ matrix.package }} ${{ matrix.cargo_flags }}

# Job to check that all the builds succeeded
build-check:
Expand Down

0 comments on commit 612d58d

Please sign in to comment.