|
8 | 8 | branches: |
9 | 9 | - master |
10 | 10 |
|
| 11 | +env: |
| 12 | + # Generic |
| 13 | + FORCE_COLOR: '1' |
| 14 | + CLICOLOR: '1' |
| 15 | + # Rust |
| 16 | + CARGO_TERM_COLOR: always |
| 17 | + RUST_BACKTRACE: '1' |
| 18 | + |
11 | 19 | jobs: |
12 | 20 | build: |
13 | 21 | runs-on: ${{ matrix.operating-system }} |
14 | 22 | strategy: |
15 | 23 | fail-fast: false |
16 | 24 | matrix: |
17 | | - operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] |
| 25 | + operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-latest ] |
18 | 26 | rust: [ stable ] |
19 | 27 | env: |
20 | 28 | pact_do_not_track: true |
21 | 29 | 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 | + |
28 | 36 | - name: Install shared mime info DB |
29 | 37 | if: runner.os == 'macOS' |
30 | 38 | 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 | + |
55 | 44 | - name: Run mock_server_logs test |
56 | 45 | run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored |
57 | 46 | working-directory: rust |
58 | | - env: |
59 | | - RUST_LOG: debug |
60 | | - RUST_BACKTRACE: 1 |
0 commit comments