From ea1ae32c0c55c0466b1dbd9625f09dad3e079859 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 17:22:22 -0500 Subject: [PATCH 1/2] ci: host workflow for crates/aienos-infer (fmt, clippy, test, no_std build) The retired CI workflow is disabled on GitHub; nothing else runs the Rust crate tests. Scoped to the inference crate (aienos#34). Co-Authored-By: Claude Fable 5.1 --- .github/workflows/infer-crate.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/infer-crate.yml diff --git a/.github/workflows/infer-crate.yml b/.github/workflows/infer-crate.yml new file mode 100644 index 00000000..8e8152f4 --- /dev/null +++ b/.github/workflows/infer-crate.yml @@ -0,0 +1,39 @@ +name: Inference crate (aienos-infer) + +# Host checks for the no_std inference crate (aienos#34). The retired "CI" +# workflow (ci.yml) is disabled on GitHub since the move to the C kernel, so +# this is the only automatic check for crates/aienos-infer. Real-model golden +# tests skip when the model file is absent; the ggml fixtures always run. +on: + pull_request: + paths: + - "crates/aienos-infer/**" + - "Cargo.toml" + - "Cargo.lock" + - ".github/workflows/infer-crate.yml" + push: + branches: [main] + paths: + - "crates/aienos-infer/**" + +permissions: + contents: read + +jobs: + infer-host: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy, rustfmt + targets: aarch64-unknown-none + - name: fmt + run: cargo fmt -p aienos-infer --check + - name: clippy + run: cargo clippy -p aienos-infer --all-targets -- -D warnings + - name: test + run: cargo test -p aienos-infer + - name: no_std build (aarch64-unknown-none) + run: cargo build -p aienos-infer --target aarch64-unknown-none From 253cdd32b5f7728a63d86d3d939303f92a86d51b Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 17:22:38 -0500 Subject: [PATCH 2/2] ci(infer-crate): skip cleanly when the crate is absent on the ref Co-Authored-By: Claude Fable 5.1 --- .github/workflows/infer-crate.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/infer-crate.yml b/.github/workflows/infer-crate.yml index 8e8152f4..8cc55121 100644 --- a/.github/workflows/infer-crate.yml +++ b/.github/workflows/infer-crate.yml @@ -29,11 +29,19 @@ jobs: with: components: clippy, rustfmt targets: aarch64-unknown-none + - name: crate present? + id: present + run: | + if [ -d crates/aienos-infer ]; then echo "yes=true" >> "$GITHUB_OUTPUT"; else echo "crates/aienos-infer absent on this ref; nothing to check"; echo "yes=false" >> "$GITHUB_OUTPUT"; fi - name: fmt + if: steps.present.outputs.yes == 'true' run: cargo fmt -p aienos-infer --check - name: clippy + if: steps.present.outputs.yes == 'true' run: cargo clippy -p aienos-infer --all-targets -- -D warnings - name: test + if: steps.present.outputs.yes == 'true' run: cargo test -p aienos-infer - name: no_std build (aarch64-unknown-none) + if: steps.present.outputs.yes == 'true' run: cargo build -p aienos-infer --target aarch64-unknown-none