From b0f5959ae461867085bf0a5eca653d5ab26fdc56 Mon Sep 17 00:00:00 2001 From: Russell Liu Date: Wed, 6 Sep 2023 14:11:51 -0400 Subject: [PATCH] share build cache when building rust API and the example project --- .github/workflows/ci-workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 8b40d01bd9..231f2c4672 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -69,14 +69,16 @@ jobs: needs: [rustfmt-check] runs-on: kuzu-self-hosted-testing env: - # Share build cache when building rust API and the example project - CARGO_TARGET_DIR: ${{ github.workspace }}/target CARGO_BUILD_JOBS: 32 CC: gcc CXX: g++ steps: - uses: actions/checkout@v3 + - name: Rust share build + # Share build cache when building rust API and the example project + run: echo $'[workspace]\nmembers = ["tools/rust_api","examples/rust"]' > Cargo.toml + - name: Rust test working-directory: tools/rust_api run: |