Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
strategy:
matrix:
php:
- branch: "8.6"
- branch: "8.5"
- branch: "8.4"
- branch: "8.3"
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-imagick

- name: Build Redis extension
if: ${{ !(steps.params.outputs.major == 8 && steps.params.outputs.minor == 6) }}
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-redis

- name: Build Redis 3 extension
Expand All @@ -94,14 +96,14 @@ jobs:
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-mysql

- name: Build Xdebug extension
if: ${{ !(steps.params.outputs.major == 8 && steps.params.outputs.minor == 3) }}
if: ${{ !(steps.params.outputs.major == 8 && steps.params.outputs.minor == 3) && !(steps.params.outputs.major == 8 && steps.params.outputs.minor == 6) }}
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-xdebug

- name: Build Tidy extension
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-tidy

- name: Build Decimal extension
if: ${{ steps.params.outputs.major >= 7 }}
if: ${{ steps.params.outputs.major >= 7 && !(steps.params.outputs.major == 8 && steps.params.outputs.minor == 6) }}
run: nix-build -A outputs.checks.${{ matrix.archs.arch }}.${{ steps.params.outputs.attr }}-decimal

- name: Check that composer PHAR works
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following versions are currently available:
- `php83`
- `php84`
- `php85`
- `php86` **PRE-RELEASE**

There is also a `php` package which is the alias of the default PHP version in Nixpkgs.

Expand Down
5 changes: 4 additions & 1 deletion checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let

redis = {
description = "Build Redis extension";
enabled = { php, lib, ... }: lib.versionOlder php.version "8.6";
drv = { php, ... }: php.extensions.redis;
};

Expand All @@ -45,6 +46,7 @@ let

xdebug = {
description = "Build Xdebug extension";
enabled = { php, lib, ... }: lib.versionOlder php.version "8.6";
drv = { php, ... }: php.extensions.xdebug;
};

Expand All @@ -55,7 +57,8 @@ let

decimal = {
description = "Build Decimal extension";
enabled = { php, lib, ... }: lib.versionAtLeast php.version "7";
enabled =
{ php, lib, ... }: lib.versionAtLeast php.version "7" && lib.versionOlder php.version "8.6";
drv = { php, ... }: php.extensions.decimal;
};

Expand Down
6 changes: 3 additions & 3 deletions flake.lock

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

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
php83
php84
php85
php86
;
};
in
Expand Down
4 changes: 4 additions & 0 deletions pkgs/phps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,8 @@ in
php85 = prev.php85.override {
inherit packageOverrides;
};

php86 = prev.php86.override {
inherit packageOverrides;
};
}
Loading