chore(FFI): Update pact_mock_server to 1.2.11 #1985
This file contains 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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
RUST_BACKTRACE: "1" | |
RUST_LOG: "debug" | |
PACT_DO_NOT_TRACK: "true" | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] | |
rust: [ stable ] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustc --version || true | |
shell: bash | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: rust | |
shared-key: ${{ runner.os }} | |
- name: Install shared mime info DB | |
if: runner.os == 'macOS' | |
run: brew install shared-mime-info | |
- name: Install doxygen | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y doxygen | |
- name: Build pact_ffi with CMake | |
run: ./ci-build.sh | |
working-directory: rust/pact_ffi | |
shell: bash | |
- name: Run the C FFI tests | |
if: runner.os == 'Linux' | |
working-directory: c/consumer-verification | |
run: | | |
sudo apt update | |
sudo apt install libcurl4-openssl-dev | |
/usr/bin/aclocal | |
autoconf | |
automake --add-missing | |
./configure | |
make | |
src/consumer-verification basic ../../rust/target/debug/libpact_ffi.so | |
src/consumer-verification error ../../rust/target/debug/libpact_ffi.so |