From 799fab8ef858023b2ed54e41f4da49e7ed76e142 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 13 Jan 2025 18:12:56 +0000 Subject: [PATCH] Build and cache cbindgen in CI --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/release.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac7404f7..06882fb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,11 @@ jobs: uses: actions/cache@v4 with: path: | - ~/.cargo/registry - ~/.cargo/git + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Get descriptive libloot version @@ -62,6 +65,9 @@ jobs: libtbb-dev \ g++-10 + - name: Install cbindgen + run: cargo install cbindgen --version 0.27.0 + - name: Run CMake run: | mkdir build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 011efd6a..67fa7bee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,8 +49,11 @@ jobs: uses: actions/cache@v4 with: path: | - ~/.cargo/registry - ~/.cargo/git + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Download Boost @@ -77,6 +80,9 @@ jobs: libtbb-dev \ g++-10 + - name: Install cbindgen + run: cargo install cbindgen --version 0.27.0 + - name: Run CMake run: | mkdir build