From 6156082400a1c6a7f6c79569e26ae06bab70a1ee Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 18 Dec 2025 12:13:37 +0100 Subject: [PATCH] Add cache for cbinding --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be0d5865..2e9faff6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,8 +100,20 @@ jobs: os: linux nim_version: ${{ env.nim_version }} + - name: Record submodule commit + run: git -C vendor/nim-codex rev-parse HEAD > vendor/logos-storage-nim/.storage-commit + + - name: Cache libstorage build + id: cache-libstorage + uses: actions/cache@v4 + with: + path: vendor/logos-storage-nim/build + key: ${{ runner.os }}-libstorage-${{ hashFiles('vendor/logos-storage-nim/.storage-commit') }} + - name: C Binding build + if: steps.cache-libstorage.outputs.cache-hit != 'true' run: | + make -j${ncpu} update make -j${ncpu} libstorage - name: C Binding test