-
Notifications
You must be signed in to change notification settings - Fork 46
48 lines (46 loc) · 1.41 KB
/
build-ffi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Pact-Rust FFI Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
rust: [ stable ]
env:
pact_do_not_track: true
steps:
- uses: actions/checkout@v3
- run: rustc --version || true
shell: bash
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install shared mime info DB
if: runner.os == 'macOS'
run: brew install shared-mime-info
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
- 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