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
15 changes: 14 additions & 1 deletion .github/workflows/extensions-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ jobs:
run:
working-directory: libsql-sqlite3
name: CR SQLite C Tests
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib

steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: Install deps
run: sudo apt update && sudo apt install -y libclang-18-dev
- name: build libsql
run: |
./configure
Expand All @@ -46,11 +50,15 @@ jobs:
run:
working-directory: libsql-sqlite3
name: CR SQLite Rust Tests
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib

steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: Install deps
run: sudo apt update && sudo apt install -y libclang-18-dev
- name: build libsql
run: |
./configure
Expand All @@ -63,14 +71,19 @@ jobs:
extensions-tests:
runs-on: ubuntu-latest
name: Extensions Tests
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib
# wabt-sys v0.6.1 bundles a CMakeLists that declares a pre-3.5
# cmake_minimum_required, which CMake 4.x refuses; allow it.
CMAKE_POLICY_VERSION_MINIMUM: "3.5"

steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: install libs
run: |
sudo apt install libblas-dev liblapack-dev
sudo apt update && sudo apt install -y libclang-18-dev libblas-dev liblapack-dev
- name: build libsql and ffi bindings
run: |
cargo xtask build-bundled
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/golang-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ jobs:
- name: Build sql-experimental
run: cargo b -j16 --release -p sql-experimental

# Newer Go toolchains reject static libraries that carry an embedded LLVM
# bitcode section during cgo linking ("disallowed LTO section .llvmbc").
# The section is only used for LTO (which the release build does not do),
# so strip it from the archive before handing it to go-libsql.
- name: Strip embedded LLVM bitcode from static library
run: |
set -eux
lib=target/release/libsql_experimental.a
objcopy --remove-section .llvmbc --remove-section .llvmcmd "$lib"
ranlib "$lib"

- name: go-libsql checkout
uses: actions/checkout@v3
with:
Expand Down
Loading