From 6d7f8fab98069df597f46cf3c1a41d0bae972cd1 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 18 Dec 2025 11:47:50 +0100 Subject: [PATCH] Separatre cbinding into another task --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a09ebce1..be0d5865 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,3 +84,28 @@ jobs: name: codecov-umbrella token: ${{ secrets.CODECOV_TOKEN }} verbose: true + + cbinding: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + submodules: recursive + ref: ${{ github.event.pull_request.head.sha }} + + - name: Setup Nimbus Build System + uses: ./.github/actions/nimbus-build-system + with: + os: linux + nim_version: ${{ env.nim_version }} + + - name: C Binding build + run: | + make -j${ncpu} libstorage + + - name: C Binding test + run: | + cd examples/c + gcc -o storage storage.c -L../../build -lstorage -Wl,-rpath,../../ -pthread + LD_LIBRARY_PATH=../../build ./storage