Add cache for cbinding

This commit is contained in:
Arnaud 2025-12-18 12:13:37 +01:00
parent 6d7f8fab98
commit 6156082400
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -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