From 47d6dbf8a49ba226c2cd736b7d7cf3272cb0028a Mon Sep 17 00:00:00 2001 From: serprex <159546+serprex@users.noreply.github.com> Date: Fri, 4 Sep 2026 21:52:42 +0000 Subject: [PATCH] Cache chdb helper For ARM static builds linker is taking nearly 10m --- .github/workflows/ci.yml | 15 ++++++++++++++- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11c6b4a..acdadd3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,10 +40,23 @@ jobs: id: cache-chdb uses: actions/cache@v6 with: - key: ${{ steps.chdb.outputs.directory }}-${{ matrix.build }} + key: ${{ steps.chdb.outputs.directory }}-${{ steps.chdb.outputs.version }}-${{ matrix.build }} path: | ${{ steps.chdb.outputs.directory }}/lib/libchdb.* ${{ steps.chdb.outputs.directory }}/include/chdb.h + # chdb_helper can be shared across PG versions + - name: Cache chDB Helper + if: matrix.build == 'static' + id: cache-helper + uses: actions/cache@v6 + with: + key: helper-${{ matrix.arch }}-${{ steps.chdb.outputs.version }}-${{ hashFiles('src/helper/*.c', 'src/setup.h') }} + path: | + src/helper/chdb_helper + src/helper/chdb_helper.o + - name: Freshen chDB Helper + if: steps.cache-helper.outputs.cache-hit == 'true' + run: touch src/helper/chdb_helper.o && touch src/helper/chdb_helper - name: Build run: make -j $(nproc) - name: Install diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 20b6941..406e91b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,7 +30,7 @@ jobs: id: cache-chdb uses: actions/cache@v6 with: - key: ${{ steps.chdb.outputs.directory }} + key: ${{ steps.chdb.outputs.directory }}-${{ steps.chdb.outputs.version }} path: | ${{ steps.chdb.outputs.directory }}/lib/libchdb.* ${{ steps.chdb.outputs.directory }}/include/chdb.h diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2149291..fa3b30c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: id: cache-chdb uses: actions/cache@v6 with: - key: ${{ steps.chdb.outputs.directory }} + key: ${{ steps.chdb.outputs.directory }}-${{ steps.chdb.outputs.version }} path: | ${{ steps.chdb.outputs.directory }}/lib/libchdb.* ${{ steps.chdb.outputs.directory }}/include/chdb.h