chore!: remove deprecated server function and overhaul c examples #2261
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: Pact-Rust FFI Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| # Generic | |
| FORCE_COLOR: '1' | |
| CLICOLOR: '1' | |
| # Rust | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: '1' | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| operating-system: [ ubuntu-latest, windows-latest, macos-15, macos-15-intel ] | |
| rust: [ nightly ] | |
| env: | |
| pact_do_not_track: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Install cbindgen and just | |
| uses: taiki-e/install-action@main | |
| with: | |
| tool: cbindgen,just | |
| - name: Install macOS dependencies | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install \ | |
| shared-mime-info | |
| - name: Install Windows dependencies | |
| if: runner.os == 'Windows' | |
| run: | | |
| vcpkg install ` | |
| curl ` | |
| liblzma ` | |
| bzip2 ` | |
| openssl ` | |
| zlib | |
| vcpkg integrate install | |
| Write-Output "CMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" >> $env:GITHUB_ENV | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| curl \ | |
| libbz2-dev \ | |
| libcurl4-openssl-dev \ | |
| liblzma-dev \ | |
| libssl-dev \ | |
| pkg-config \ | |
| zlib1g-dev | |
| - name: Debug env | |
| if: runner.os == 'Windows' | |
| run: | | |
| Get-ChildItem Env: | |
| - name: Run C consumer examples | |
| working-directory: c/consumer | |
| run: just run | |
| - name: Run mock_server_logs test | |
| run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored | |
| working-directory: rust |