Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ jobs:
apk_region: us
limit_to_owner: ""
main_pr_only: false
- name: Test starry aarch64 buddy-slab qemu
use_container: true
runs_on: '["ubuntu-latest"]'
command: cargo xtask starry test qemu --arch aarch64 -c test-clone-files-race-buddy-slab
cache_key: test-starry-aarch64-buddy-slab
container_image: base
apk_region: us
limit_to_owner: ""
main_pr_only: false
- name: Test starry loongarch64 qemu
use_container: true
runs_on: '["ubuntu-latest"]'
Expand Down
82 changes: 71 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ members = [
"components/axvm",
"components/axvmconfig",
"components/bitmap-allocator",
"components/buddy-slab-allocator",
"components/cap_access",
"components/cpumask",
"components/crate_interface",
Expand Down Expand Up @@ -371,7 +372,7 @@ bitflags = "2.11"
byte-unit = { version = "5", default-features = false, features = ["byte"] }
derive_more = { version = "2.1", default-features = false, features = ["full"] }
bindgen = "0.72"
buddy-slab-allocator = "0.4"
buddy-slab-allocator = { version = "0.4", path = "components/buddy-slab-allocator" }
cfg-if = "1.0"
chrono = { version = "0.4", default-features = false }
enum_dispatch = "0.3"
Expand Down
94 changes: 94 additions & 0 deletions components/buddy-slab-allocator/.github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Quality Checks

on:
workflow_call:

jobs:
fmt:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-02-25
components: rustfmt

- name: Check code format
run: cargo fmt --all -- --check

clippy:
name: Clippy Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-02-25
components: clippy

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Run clippy
run: cargo clippy --all-targets -- -D warnings

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-02-25

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Build library
run: cargo build

doc:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-02-25

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Build documentation
run: cargo doc --no-deps

bench-check:
name: Bench Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-02-25

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Check benchmarks
run: cargo check --benches
20 changes: 20 additions & 0 deletions components/buddy-slab-allocator/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
pull_request:
push:
branches-ignore:
- main
tags-ignore:
- "*"

permissions:
contents: read

jobs:
check:
uses: ./.github/workflows/check.yml

test:
uses: ./.github/workflows/test.yml
needs: check
Loading
Loading