From 612d58d4bbe0bc97f96fe152cfeba747154832aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas?= Date: Fri, 17 Nov 2023 14:52:40 +0100 Subject: [PATCH] fix build.yaml --- .github/workflows/build.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 40b05006..44d88d22 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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: @@ -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: @@ -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: