mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-01-08 10:39:02 +00:00
6a6b5dfc70
* chore: remove filesystem clean c bindings * add env var in actions file
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
name: C bindings tests CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
merge_group:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
c-bindings:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@v2
|
|
|
|
- name: Set up cargo cache
|
|
uses: actions/cache@v3
|
|
continue-on-error: false
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: ${{ runner.os }}-cargo-
|
|
|
|
- name: Build crates
|
|
run: cargo build --release
|
|
|
|
- name: copy lib
|
|
working-directory: bindings/c
|
|
run: cp ../../target/release/libsql_experimental.a .
|
|
|
|
- name: clean rust
|
|
run: cargo clean
|
|
|
|
- name: Build C bindings example
|
|
working-directory: bindings/c
|
|
env:
|
|
LIBSQL_EXPERIMENTAL_PATH: libsql_experimental.a
|
|
run: make
|