Skip to content

Commit 3246416

Browse files
troyjr4103claude
andcommitted
feat(ci): add Linux ARM64 native runner + Windows vector-free patch
- Linux ARM64: uses ubuntu-24.04-arm native runner (no cross-compilation) - Windows: checks out kin-db locally, patches Cargo to disable vector feature (bypasses usearch C++ MSVC failure) - Now 5 build targets: linux-x64, linux-arm64, macos-x64, macos-arm64, windows-x64 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7c1a17d commit 3246416

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
target: x86_64-unknown-linux-gnu
2727
artifact: kin-linux-x86_64
2828
shim_name: libkin_vfs_shim.so
29+
- os: ubuntu-24.04-arm
30+
target: aarch64-unknown-linux-gnu
31+
artifact: kin-linux-aarch64
32+
shim_name: libkin_vfs_shim.so
2933
- os: macos-latest
3034
target: x86_64-apple-darwin
3135
artifact: kin-macos-x86_64
@@ -38,7 +42,7 @@ jobs:
3842
target: x86_64-pc-windows-msvc
3943
artifact: kin-windows-x86_64
4044
shim_name: kin_vfs_shim.dll
41-
no_default_features: true
45+
skip_vector: true
4246

4347
steps:
4448
- name: Checkout
@@ -59,18 +63,31 @@ jobs:
5963
repository: firelock-ai/kin-vfs
6064
path: kin-vfs
6165

66+
- name: Checkout kin-db (for Windows vector-free build)
67+
if: ${{ matrix.skip_vector }}
68+
uses: actions/checkout@v6
69+
with:
70+
repository: firelock-ai/kin-db
71+
path: kin-db-local
72+
73+
- name: Patch kin-db to disable vector on Windows
74+
if: ${{ matrix.skip_vector }}
75+
shell: bash
76+
run: |
77+
# Override kin-db git dep with local checkout (no vector feature)
78+
mkdir -p .cargo
79+
cat >> .cargo/config.toml << 'TOML'
80+
[patch."https://github.com/firelock-ai/kin-db.git"]
81+
kin-db = { path = "kin-db-local/crates/kin-db", default-features = false }
82+
kin-model = { path = "kin-db-local/crates/kin-model" }
83+
TOML
84+
6285
- name: Build kin-cli (native)
6386
if: ${{ !matrix.cross }}
6487
shell: bash
65-
run: |
66-
EXTRA_FLAGS=""
67-
if [ "$NO_DEFAULT_FEATURES" = "true" ]; then
68-
EXTRA_FLAGS="--no-default-features"
69-
fi
70-
cargo build --release --target "$TARGET" -p kin-cli $EXTRA_FLAGS
88+
run: cargo build --release --target "$TARGET" -p kin-cli
7189
env:
7290
TARGET: ${{ matrix.target }}
73-
NO_DEFAULT_FEATURES: ${{ matrix.no_default_features }}
7491

7592
- name: Build kin-cli (cross)
7693
if: ${{ matrix.cross }}

0 commit comments

Comments
 (0)