Skip to content

Commit 0643aa9

Browse files
committed
Build driver with system libs
1 parent ff06d1f commit 0643aa9

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/actions/linux/build/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ inputs:
44
version:
55
description: "PHP version to build for"
66
required: true
7+
configureOpts:
8+
description: "Extra options to use for the call to ./configure"
9+
default: ""
10+
711
runs:
812
using: composite
913
steps:
@@ -17,6 +21,8 @@ runs:
1721
- name: "Configure driver"
1822
run: .github/workflows/configure.sh
1923
shell: bash
24+
env:
25+
CONFIGURE_OPTS: ${{ inputs.configureOpts }}
2026

2127
- name: "Build driver"
2228
run: "make all"

.github/workflows/system-libs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ jobs:
2121
uses: ./.github/actions/linux/build-libmongoc
2222
with:
2323
version: 2.0.1
24+
25+
- name: "Build Driver"
26+
id: build-driver
27+
uses: ./.github/actions/linux/build
28+
with:
29+
version: "8.4"
30+
configureOpts: "--with-mongodb-system-libs=yes"
31+
32+
- name: "Check driver version"
33+
shell: bash
34+
run: |
35+
php --ri mongodb

0 commit comments

Comments
 (0)