Skip to content
Open
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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_26.2.app
- name: Run Tests
run: swift test
- name: Build Release
run: swift build --configuration release

linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Test Swift Package on Linux"
run: swift test
1 change: 0 additions & 1 deletion Sources/SQLiteVecData/Database+LoadSQLiteVec.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import CSQLiteVec
import GRDB
import SQLite3

extension Database {
/// Loads the sqlite-vec extension into the current database connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import StructuredQueriesCore
rhs.array.span.withUnsafeBytes { rhsPtr in
let size = Self.count * MemoryLayout<Float>.stride
return lhsPtr.baseAddress == rhsPtr.baseAddress
|| memcmp(lhsPtr.baseAddress, rhsPtr.baseAddress, size) == 0
|| memcmp(lhsPtr.baseAddress!, rhsPtr.baseAddress!, size) == 0
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions Tests/SQLiteVecDataTests/Vec0QueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3093,8 +3093,9 @@ struct Vec0QueryTests {

let records = (0..<50)
.map { index in
Embedding(
embedding: [Float(index), Float(index + 1), Float(index + 2)],
let index = Float(index)
return Embedding(
embedding: [index, index + 1, index + 2],
label: "item-\(index)"
)
}
Expand Down
Loading