feat: add webui-wasm crate #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR FFI Checks | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ffi-tests: | |
| name: FFI Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install protoc | |
| run: sudo apt-get install -y protobuf-compiler | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.93 | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build webui-ffi | |
| run: cargo build -p webui-ffi | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Run Python FFI tests | |
| run: python crates/webui-ffi/tests/python/test_webui_ffi.py -v | |
| env: | |
| LD_LIBRARY_PATH: target/debug | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Run Go FFI tests | |
| working-directory: crates/webui-ffi/tests/go | |
| run: go test -v | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/target/debug | |
| CGO_LDFLAGS: -L${{ github.workspace }}/target/debug -lwebui_ffi -lm -ldl -lpthread | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Run C# FFI tests | |
| working-directory: crates/webui-ffi/tests/csharp | |
| run: dotnet test -v normal | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/target/debug |