3 Commits
Author SHA1 Message Date
Markson Hon 8d783e219d build: fix loong64 sqlite build path in CI
- route loong64 to sqlite3(cgo) driver branch

- install loongarch cross compiler and enable cgo for loong64 in binaries workflow

- bump bbolt to v1.4.3 for loong64 compatibility

- keep no-cgo cross builds compile-clean for loong64/mips64
2026-05-04 19:45:26 +08:00
Markson Hon c6e21dc591 build: fix mips-family sqlite driver selection and CI cgo setup
- extend mips driver build tags to cover mips/mips64 variants

- update sqlite validation message to mips-family scope

- enable CGO only for Linux mips-family targets in binaries workflow

- install required mips cross compilers in CI
2026-05-04 19:37:22 +08:00
Markson Hon afd73bbbc8 service/db: switch sqlite driver by target architecture
Use build-tag specific driver selection for sqlite:

- keep modernc sqlite on non-mipsle targets

- use go-sqlite3 for mipsle builds with cgo

- return explicit error when sqlite driver is unavailable

Also apply the same driver selection in migration db initialization.
2026-05-04 19:27:15 +08:00