mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
ci(ffi): verify FFI code and examples
This commit is contained in:
parent
1bb6895422
commit
8ab98820bd
1 changed files with 30 additions and 0 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue