38 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
b27ff84d6d Revert Update PHP SDK download URL and rename path 2026-01-30 14:38:26 +01:00
Jean-Baptiste Nahan
b3d30135a7 Update URL for downloading PHP SDK 2026-01-30 14:35:13 +01:00
Jean-Baptiste Nahan
bf54bba772 Update PHP SDK version in run.ps1 2026-01-30 14:26:18 +01:00
Jean-Baptiste Nahan
6956a153c4 Update PHP SDK version in run.ps1 2026-01-30 14:26:00 +01:00
Jean-Baptiste Nahan
f88f37d799 Merge branch 'php:main' into main 2025-10-06 13:44:53 +02:00
Shivam Mathur
1f5d080c41 Update PHP SDK version in README example 2025-09-19 12:52:40 +05:30
Shivam Mathur
474d4e3867 Merge pull request #16 from alcaeus/support-php-8.5
Support PHP 8.5
2025-09-19 12:41:40 +05:30
Andreas Braun
fe2ce62258 Support PHP 8.5 2025-09-16 16:17:53 +02:00
Jean-Baptiste Nahan
64518499bf fix determine cache path 2024-11-06 22:31:49 +01:00
Jean-Baptiste Nahan
3c718e2b82 add runner local cache 2024-10-31 08:26:44 +01:00
Christoph M. Becker
60426a7780 Update setup-php-sdk version in README.md 2024-09-30 17:25:02 +02:00
Christoph M. Becker
aeb631f88f Close #3: Improve error message for "toolset not available"
Besides a slight improvement to the error message, we also fix the
outdated documentation in README.md.
2024-09-30 14:48:40 +02:00
Christoph M. Becker
d07cd9875f Close #8: Implement caching (#14)
For now we cache only the PHP SDK, the PHP binaries and the development
packs.  This already greatly improves the setup performance (it might
easily safe a minute or two, in case of cache hits).  To be able to use
the current PHP revision as part of the cache key, we factor out
determine-revision.ps1.  We create a separate cache for the PHP-SDK
since this likely rarely changes, and since the cached variant is
apparently much faster than fetching a GH release of the PHP-SDK.

Since clients may not want to use the cache, possibly because they have
already a lot of other files in their caches, we explicitly require
clients to opt-in via the `cache` input parameter.
2024-09-30 12:58:39 +02:00
Christoph M. Becker
8d9e79bdbc Download a release asset instead of a tag archive (GH-13) 2024-09-15 23:35:38 +02:00
Christoph M. Becker
effb4ebbd4 Support building for PHP 8.4.0 (#6)
Since alpha pre-releases are already available, it seems to be prudent
to offer clients the ability to test their extensions for PHP 8.4 in CI.
2024-07-25 13:40:57 +02:00
Christoph M. Becker
14f764c62d Use tagged version of php-sdk-binary-tools (#5)
See <https://github.com/php/php-sdk-binary-tools?tab=readme-ov-file#internal-notes>.

According to that documentation, for PHP 7.0 and 7.1, PHP SDK 2.1 would
be required; however, we already used newer versions, and so far nobody
had complained, apparently.  So maybe the php-sdk-binary-tools README
is not quite correct, or we would need to adapt the tag for those PHP
versions.  On the other hand, it is somewhat unlikely that these old
versions are still in use, so we don't care too much about that.
2024-07-16 16:40:14 +02:00
Jeremy Mikola
4dda4d8e6d Note that PHP 7.4 and earlier requires windows-2019 (#1)
And add instructions on how to manually install old toolsets.
2024-07-13 10:19:04 +02:00
Shivam Mathur
f00a07ed3f Switch to downloads.php.net (#4) 2024-07-11 13:13:25 +02:00
Christoph M. Becker
9cf03b88b4 Merge pull request #3 from alcaeus/archive-old-php
Archive PHP 7.4 and 8.0
2024-07-08 14:05:38 +02:00
Andreas Braun
3b455e4fc9 Add debug output when downloading files 2024-07-08 13:40:22 +02:00
Andreas Braun
6884464f43 Add PHP 7.4 and 8.0 to the archives 2024-07-08 13:40:08 +02:00
Nikita Popov
575941f36e Update README.md
Use php/setup-php-sdk in example and update list of supported versions.
2023-11-29 22:32:54 +01:00
Derick Rethans
0f5c2bc024 Merge branch 'php-83-setup' 2023-11-29 09:03:59 +00:00
Derick Rethans
2a280f1e08 Set compiler for PHP 8.3 2023-09-05 18:13:40 +01:00
Derick Rethans
b35e22e1af Set compiler for PHP 8.3 2023-09-05 18:05:23 +01:00
Jeremy Mikola
26487290af Migrate deprecated set-output commands to use $GITHUB_OUTPUT (#21) 2022-11-24 13:39:26 +01:00
smiley
c4f7b925c1 Output Visual Studio version
Closes GH-16.
2022-10-10 12:16:56 +02:00
Christoph M. Becker
2de51140ec Close #13: Support PHP 8.2 builds 2022-06-22 20:22:56 +02:00
Christoph M. Becker
7377888c43 Update setup-php-sdk version in the example 2022-06-15 16:22:01 +02:00
James Titcumb
65a48f560e Added note on supported windows runners for older PHP versions (#11)
Fixes #10.
2022-06-15 16:16:17 +02:00
Christoph M. Becker
d41232b10e Fix #9: vs16 toolset not properly detected for Visual Studio 2022
Only 14.20 - 14.29 toolsets are suitable for PHP vs16 builds; we
prepare for vs17 builds right away.
2022-03-01 12:46:09 +01:00
Derick Rethans
a2fae4d5f3 Adding missing PHP 7.3 entry
* Adding missing PHP 7.3 entry

Add this as it's no longer part of `https://windows.php.net/downloads/releases/releases.json`.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes #7.
2022-03-01 10:10:04 +01:00
Christoph M. Becker
541168c167 Fix #6: deps parameter is practically mandatory
We need to use the proper default, and also need to allow empty arrays
as argument.
2021-12-22 00:58:44 +01:00
Christoph M. Becker
5338241a9c Use php/php-sdk-binary-tools instead of cmb69 fork 2021-12-05 14:00:54 +01:00
Christoph M. Becker
5c27dff221 Allow to install core dependencies 2021-12-04 12:13:49 +01:00
Christoph M. Becker
3b54c4ab2a Show progress 2021-09-18 17:09:47 +02:00
Christoph M. Becker
dc2a4d88bb Fix #4: nts builds are not supported
We must not overwrite the passed parameter, and use it afterwards.
2021-09-04 12:59:42 +02:00
Christoph M. Becker
52470d5e50 Minimal useful action 2021-06-20 18:34:59 +02:00