|
@@ -2,9 +2,9 @@ name: Rust
|
|
|
|
|
|
on:
|
|
on:
|
|
push:
|
|
push:
|
|
- branches: [ "main" ]
|
|
|
|
|
|
+ branches: ["main"]
|
|
pull_request:
|
|
pull_request:
|
|
- branches: [ "main" ]
|
|
|
|
|
|
+ branches: ["main"]
|
|
workflow_dispatch:
|
|
workflow_dispatch:
|
|
|
|
|
|
env:
|
|
env:
|
|
@@ -87,7 +87,7 @@ jobs:
|
|
# run: cargo clippy -- -D warnings
|
|
# run: cargo clippy -- -D warnings
|
|
- name: Run tests
|
|
- name: Run tests
|
|
run: cargo test -p sbi-spec --verbose
|
|
run: cargo test -p sbi-spec --verbose
|
|
-
|
|
|
|
|
|
+
|
|
build-sbi-rt:
|
|
build-sbi-rt:
|
|
name: Build sbi-rt
|
|
name: Build sbi-rt
|
|
needs: fmt
|
|
needs: fmt
|
|
@@ -127,6 +127,48 @@ jobs:
|
|
run: |
|
|
run: |
|
|
cargo build --target ${{ matrix.TARGET }} --verbose -p sbi-testing --features "log"
|
|
cargo build --target ${{ matrix.TARGET }} --verbose -p sbi-testing --features "log"
|
|
|
|
|
|
|
|
+ msrv-test:
|
|
|
|
+ name: MSRV Test (Rust 1.86.0-nightly)
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
+ strategy:
|
|
|
|
+ matrix:
|
|
|
|
+ rustsbi_TARGET:
|
|
|
|
+ - riscv64imac-unknown-none-elf
|
|
|
|
+ - riscv32imac-unknown-none-elf
|
|
|
|
+ sbi_rt_TARGET:
|
|
|
|
+ - riscv64imac-unknown-none-elf
|
|
|
|
+ sbi_testing_TARGET:
|
|
|
|
+ - riscv64imac-unknown-none-elf
|
|
|
|
+ sbi_spec_TARGET:
|
|
|
|
+ - riscv64imac-unknown-none-elf
|
|
|
|
+ - riscv32imac-unknown-none-elf
|
|
|
|
+ TOOLCHAIN:
|
|
|
|
+ - nightly-2025-02-07
|
|
|
|
+ steps:
|
|
|
|
+ - name: Checkout repository
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
+ - name: Install MSRV toolchain
|
|
|
|
+ uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
+ with:
|
|
|
|
+ toolchain: ${{ matrix.TOOLCHAIN }}
|
|
|
|
+ override: true
|
|
|
|
+ - name: Install target
|
|
|
|
+ run: |
|
|
|
|
+ rustup target add ${{ matrix.rustsbi_TARGET }}
|
|
|
|
+ rustup target add ${{ matrix.sbi_rt_TARGET }}
|
|
|
|
+ rustup target add ${{ matrix.sbi_testing_TARGET }}
|
|
|
|
+ rustup target add ${{ matrix.sbi_spec_TARGET }}
|
|
|
|
+ - uses: Swatinem/rust-cache@v2
|
|
|
|
+ with:
|
|
|
|
+ key: ${{ matrix.TOOLCHAIN }}
|
|
|
|
+ - name: Check rustsbi
|
|
|
|
+ run: cargo check --target ${{ matrix.rustsbi_TARGET }} -p rustsbi
|
|
|
|
+ - name: Check sbi-rt
|
|
|
|
+ run: cargo check --target ${{ matrix.sbi_rt_TARGET }} -p sbi-rt
|
|
|
|
+ - name: Check sbi-testing
|
|
|
|
+ run: cargo check --target ${{ matrix.sbi_testing_TARGET }} -p sbi-testing
|
|
|
|
+ - name: Check sbi-spec (compilation check)
|
|
|
|
+ run: cargo check --target ${{ matrix.sbi_spec_TARGET }} -p sbi-spec
|
|
# sbi-testing:
|
|
# sbi-testing:
|
|
# name: Run rust-clippy analyzing
|
|
# name: Run rust-clippy analyzing
|
|
# runs-on: ubuntu-latest
|
|
# runs-on: ubuntu-latest
|