chore!: remove deprecated server function and overhaul c examples #2266
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 uv | |
| uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3 | |
| - 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 Conan | |
| run: uv tool install conan | |
| - name: Install macOS dependencies | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install \ | |
| shared-mime-info | |
| - 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 |