Skip to content

ABI: const.h/kvspace.h/frontend 适配 index/coord 语义 #11

ABI: const.h/kvspace.h/frontend 适配 index/coord 语义

ABI: const.h/kvspace.h/frontend 适配 index/coord 语义 #11

Workflow file for this run

name: release-abi
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: 构建
run: cmake -B build && cmake --build build
- name: 打包 ABI 产物
run: |
set -euo pipefail
v="${GITHUB_REF_NAME}"
d="kvspace-abi-$v-linux-x86_64"
mkdir -p "$d/include" "$d/lib"
cp -r include/kvspace "$d/include/"
cp build/libkvspace.so* "$d/lib/"
printf '{"abi":"%s"}\n' "$v" > "$d/abi-manifest.json"
tar czf "$d.tar.gz" "$d"
sha256sum "$d.tar.gz" > SHA256SUMS
- name: 发布 release
run: gh release create "${GITHUB_REF_NAME}" kvspace-abi-*.tar.gz SHA256SUMS --generate-notes