Repository navigation
build(deps): Bump toml from 1.1.5+spec-1.1.0 to 1.1.6+spec-1.1.0 #4606
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Test | |
| run: | | |
| cargo test --lib --no-fail-fast | |
| cargo test --bins --examples --no-fail-fast | |
| cargo test --doc --no-fail-fast | |
| env: | |
| RUST_BACKTRACE: 1 | |
| test-features: | |
| name: Test all features | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| targets: x86_64-unknown-none | |
| components: llvm-tools | |
| - name: Test | |
| run: | | |
| cargo test --lib --all-features | |
| env: | |
| RUST_BACKTRACE: 1 | |
| integration-tests: | |
| name: Integration Tests | |
| runs-on: [self-hosted] | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install gdb, libclang | |
| run: | | |
| sudo apt-get update | |
| # libclang is required by virtio-bindings for bindgen | |
| sudo apt-get install -y --no-install-recommends gdb libclang-dev | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: mkroening/rust-toolchain-toml@main | |
| with: | |
| toolchain-file: 'tests/test-kernels/rust-toolchain.toml' | |
| - name: Integration Tests | |
| run: cargo test --test '*' --no-fail-fast | |
| run_images: | |
| name: Run images | |
| runs-on: [self-hosted] | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install libclang | |
| run: | | |
| sudo apt-get update | |
| # libclang is required by virtio-bindings for bindgen | |
| sudo apt-get install -y --no-install-recommends libclang-dev | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo build --locked | |
| - name: Run images | |
| timeout-minutes: 1 | |
| run: ./scripts/run_images.sh | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # TODO: Remove this, once https://github.com/rust-lang/rustfmt/issues/4991 is resolved | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| - name: Format Test Kernels | |
| run: cargo +nightly fmt --all -- --check | |
| working-directory: tests/test-kernels | |
| lock-file: | |
| name: Lock file | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - run: cargo update -w --locked | |
| - uses: mkroening/rust-toolchain-toml@main | |
| with: | |
| toolchain-file: 'tests/test-kernels/rust-toolchain.toml' | |
| - run: cargo update -w --locked --manifest-path tests/test-kernels/Cargo.toml | |
| clippy: | |
| name: Clippy | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| targets: x86_64-unknown-linux-gnu | |
| flags: --target x86_64-unknown-linux-gnu | |
| - os: macos-latest | |
| targets: aarch64-apple-darwin | |
| flags: --target aarch64-apple-darwin | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.targets }} | |
| components: clippy | |
| - name: Clippy | |
| run: cargo clippy --all-targets ${{ matrix.flags }} -- -D warnings | |
| - run: git diff --exit-code Cargo.lock | |
| clippy-test-kernel: | |
| name: Clippy test-kernels | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install clippy for Test Kernels | |
| run: rustup component add clippy | |
| working-directory: tests/test-kernels | |
| - name: Clippy Test Kernels | |
| run: cargo clippy --all-targets -- -D warnings | |
| working-directory: tests/test-kernels | |
| - run: git diff --exit-code Cargo.lock | |
| coverage: | |
| name: Coverage | |
| runs-on: [self-hosted] | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install gdb, libclang | |
| run: | | |
| sudo apt-get update | |
| # libclang is required by virtio-bindings for bindgen | |
| sudo apt-get install -y --no-install-recommends gdb libclang-dev | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: mkroening/rust-toolchain-toml@main | |
| with: | |
| toolchain-file: 'tests/test-kernels/rust-toolchain.toml' | |
| - name: Install cargo-llvm-cov | |
| run: curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin | |
| - name: Generate code coverage | |
| run: | | |
| cargo llvm-cov --no-report run data/0.6.0/x86_64/hello_world --stats | |
| cargo llvm-cov --no-report run data/0.6.0/x86_64/rusty_demo --stats | |
| cargo llvm-cov --no-report run data/0.6.0/x86_64/hello_c --stats | |
| cargo llvm-cov --lcov --output-path lcov.info | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| disable_safe_directory: true | |
| files: lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} |