Skip to content

Commit aa6e96a

Browse files
committed
chore(ci): use new consumer examples
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 5bb7d7c commit aa6e96a

1 file changed

Lines changed: 20 additions & 34 deletions

File tree

.github/workflows/build-ffi.yml

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,39 @@ on:
88
branches:
99
- master
1010

11+
env:
12+
# Generic
13+
FORCE_COLOR: '1'
14+
CLICOLOR: '1'
15+
# Rust
16+
CARGO_TERM_COLOR: always
17+
RUST_BACKTRACE: '1'
18+
1119
jobs:
1220
build:
1321
runs-on: ${{ matrix.operating-system }}
1422
strategy:
1523
fail-fast: false
1624
matrix:
17-
operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]
25+
operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-latest ]
1826
rust: [ stable ]
1927
env:
2028
pact_do_not_track: true
2129
steps:
22-
- uses: actions/checkout@v3
23-
- run: rustc --version || true
24-
shell: bash
25-
- uses: dtolnay/rust-toolchain@stable
26-
with:
27-
toolchain: stable
30+
- name: Checkout code
31+
uses: actions/checkout@v5
32+
33+
- name: Install Rust stable
34+
uses: dtolnay/rust-toolchain@stable
35+
2836
- name: Install shared mime info DB
2937
if: runner.os == 'macOS'
3038
run: brew install shared-mime-info
31-
- uses: dtolnay/rust-toolchain@nightly
32-
with:
33-
toolchain: nightly
34-
components: rustfmt
35-
- name: Install doxygen
36-
if: runner.os == 'Linux'
37-
run: sudo apt-get install -y doxygen
38-
- name: Build pact_ffi with CMake
39-
run: ./ci-build.sh
40-
working-directory: rust/pact_ffi
41-
shell: bash
42-
- name: Run the C FFI tests
43-
if: runner.os == 'Linux'
44-
working-directory: c/consumer-verification
45-
run: |
46-
sudo apt update
47-
sudo apt install libcurl4-openssl-dev
48-
/usr/bin/aclocal
49-
autoconf
50-
automake --add-missing
51-
./configure
52-
make
53-
src/consumer-verification basic ../../rust/target/debug/libpact_ffi.so
54-
src/consumer-verification error ../../rust/target/debug/libpact_ffi.so
39+
40+
- name: Run C consumer examples
41+
working-directory: c/consumer
42+
run: make run
43+
5544
- name: Run mock_server_logs test
5645
run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored
5746
working-directory: rust
58-
env:
59-
RUST_LOG: debug
60-
RUST_BACKTRACE: 1

0 commit comments

Comments
 (0)