mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
Add cache for cbinding
This commit is contained in:
parent
6d7f8fab98
commit
6156082400
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user