Skip to content

Commit b272275

Browse files
authored
Merge pull request #1523 from mongodb/merge-v1.17-into-master-1710159043560
Merge v1.17 into master
2 parents 23f8033 + 88ceace commit b272275

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.evergreen/compile-unix.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ esac
6565
# Report the current PHP version
6666
echo "PHP: `php --version | head -n 1`"
6767

68+
# If we're testing a specific version of libmongoc, update submodule sources
69+
if [ -n "$LIBMONGOC_VERSION" ]; then
70+
php scripts/update-submodule-sources.php
71+
fi
72+
6873
phpize
6974
./configure --enable-mongodb-developer-flags
7075

71-
# If we're testing a specific version of libmongoc, regenerate the version file
76+
# configure relies on version information in libmongoc-version-current, but the target is not available until after calling configure
77+
# To work around this, run the make target, then run configure again
7278
if [ -n "$LIBMONGOC_VERSION" ]; then
7379
make libmongoc-version-current
80+
./configure --enable-mongodb-developer-flags
7481
fi
7582

7683
make test TESTS="tests/smoketest.phpt"

.github/workflows/merge-up.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Merge up
2+
3+
on:
4+
push:
5+
branches:
6+
- "v[0-9]+.[0-9]+"
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
env:
13+
GH_TOKEN: ${{ github.token }}
14+
15+
jobs:
16+
merge-up:
17+
name: Create merge up pull request
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
id: checkout
23+
uses: actions/checkout@v4
24+
with:
25+
# fetch-depth 0 is required to fetch all branches, not just the branch being built
26+
fetch-depth: 0
27+
28+
- name: Create pull request
29+
id: create-pull-request
30+
uses: alcaeus/automatic-merge-up-action@main
31+
with:
32+
ref: ${{ github.ref_name }}
33+
branchNamePattern: 'v<major>.<minor>'
34+
fallbackBranch: 'master'

0 commit comments

Comments
 (0)