Skip to content

feat: add support for rocksdb #104

feat: add support for rocksdb

feat: add support for rocksdb #104

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci
cancel-in-progress: true
env:
ZIG_VERSION: 0.14.1
jobs:
build-test:
name: build & test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
# setup
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
cache-key: ${{ matrix.os }}-${{ env.ZIG_VERSION }}
- run: bun install
- name: Generate bindings
run: |
bun run generate
if [[ $(git diff --stat src/binding.ts) != '' ]]; then
git --no-pager diff
echo "Bindings changed but was not committed. Re-generate and commit the new binding.ts!"
exit 1
fi
# check/build/test
# Zig fmt is failing on windows and is redundant to run all platforms. So we run only on linux.
- name: Check formatting
if: matrix.os == 'ubuntu-latest'
run: zig fmt --check .
- name: zig build (Release Safe)
run: zig build --release=safe
- name: Test
run: bun test