Skip to content

Commit

Permalink
Build and cache cbindgen in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Jan 13, 2025
1 parent 2299e22 commit 799fab8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 799fab8

Please sign in to comment.