From 8ab98820bdd7014cfa25f54c7d3f6760683c32ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20CORTIER?= Date: Tue, 25 Mar 2025 12:09:28 +0900 Subject: [PATCH] ci(ffi): verify FFI code and examples --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11e0f677..c21857bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,6 +171,35 @@ jobs: - name: Lock files run: cargo xtask check locks -v + ffi: + name: FFI + runs-on: ubuntu-latest + needs: formatting + + steps: + - uses: actions/checkout@v4 + + - name: Rust cache + uses: Swatinem/rust-cache@v2.7.3 + + - name: Binary cache + uses: actions/cache@v4 + with: + path: ./.cargo/local_root/bin + key: ${{ runner.os }}-bin-${{ github.job }}-${{ hashFiles('xtask/src/bin_version.rs') }} + + - name: Prepare runner + run: cargo xtask ffi install -v + + - name: Build native library + run: cargo xtask ffi build -v + + - name: Generate bindings + run: cargo xtask ffi bindings -v + + - name: Build .NET projects + run: cd ./ffi/dotnet && dotnet build + success: name: Success runs-on: ubuntu-latest @@ -181,6 +210,7 @@ jobs: - checks - fuzz - web + - ffi steps: - name: Check success