Skip to content

Commit

Permalink
Don't build with PHPC 1.x on legacy PHP versions (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus authored Sep 25, 2024
1 parent 44a3c7a commit 75da9ea
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 60 deletions.
1 change: 1 addition & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ include:

# Automatically generated files
- filename: .evergreen/config/generated/build/build-extension.yml
- filename: .evergreen/config/generated/build/build-extension-next-minor.yml
- filename: .evergreen/config/generated/test/local.yml
- filename: .evergreen/config/generated/test/load-balanced.yml
- filename: .evergreen/config/generated/test/require-api-version.yml
Expand Down
1 change: 1 addition & 0 deletions .evergreen/config/generate-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

// Build tasks
$allFiles[] = generateConfigs('tasks', 'build', 'phpVersion', 'build-extension.yml', $supportedPhpVersions);
$allFiles[] = generateConfigs('tasks', 'build', 'phpVersion', 'build-extension-next-minor.yml', $modernPhpVersions);

// Test tasks
$allFiles[] = generateConfigs('tasks', 'test', 'mongodbVersion', 'local.yml', $localServerVersions);
Expand Down
32 changes: 32 additions & 0 deletions .evergreen/config/generated/build/build-extension-next-minor.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 0 additions & 50 deletions .evergreen/config/generated/build/build-extension.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .evergreen/config/templates/build/build-extension-next-minor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: "build-php-%phpVersion%-next-minor"
tags: ["build", "php%phpVersion%", "next-minor"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_BRANCH: "v1.x"
- func: "upload extension"
10 changes: 0 additions & 10 deletions .evergreen/config/templates/build/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,3 @@
vars:
EXTENSION_BRANCH: "v1.20"
- func: "upload extension"
- name: "build-php-%phpVersion%-next-minor"
tags: ["build", "php%phpVersion%", "next-minor"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_BRANCH: "v1.x"
- func: "upload extension"

0 comments on commit 75da9ea

Please sign in to comment.