Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to Windows CI #561

Merged
merged 6 commits into from
Oct 15, 2024
Merged

Updates to Windows CI #561

merged 6 commits into from
Oct 15, 2024

Conversation

cmb69
Copy link
Contributor

@cmb69 cmb69 commented Sep 30, 2024

We

  • switch to the latest commit v0.10 of php/setup-php-sdk
  • we enable caching
  • we switch to downloads.php.net
  • we work around the missing libmemcached-vs17
  • we enable testing for PHP 8.4 on Windows

While a new release is pending, it seems worthwhile to make use of the
caching as soon as possible to speed up Windows CI.
While caching speeds up the Windows builds, allocating an available
runner takes some time (especially for many pushes in a short time).
Thus we only build PHP 8.4 x64,zts, which should already suffice to
detect most issues.
windows.php.net is in the process of being replaced by
downloads.php.net, so we switch right away.
Using libmemcached-vs16 instead should be fine.
@cmb69 cmb69 marked this pull request as ready for review September 30, 2024 11:53
@cmb69 cmb69 changed the title Use setup-php-sdk caching Updates to Windows CI Sep 30, 2024
- name: Fetch libmemcached
run: curl -OLs https://windows.php.net/downloads/pecl/deps/libmemcached-1.1.1-${{steps.setup-php.outputs.vs}}-${{matrix.arch}}.zip && 7z x libmemcached-1.1.1-${{steps.setup-php.outputs.vs}}-${{matrix.arch}}.zip -o..\deps
run: |
set MEMCACHED_FILENAME=libmemcached-1.1.1-${{steps.setup-php.outputs.vs == 'vs17' && 'vs16' || steps.setup-php.outputs.vs}}-${{matrix.arch}}.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 1.1.1 from 2021?
libmemcached is currently at 1.1.4 which actually contains a fix for a possible security issue.
I totally understand, though, if the answer is obviously manpower, etc...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 1.1.1 from 2021?

Must be one of the more recent dependency builds. Anyhow, let's see how https://github.com/winlibs/winlib-builder/actions/runs/11332741118 goes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I'll have to revert awesomized/libmemcached@1a15a08 to get back to PHP Windows naming conventions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That commit looks like a fix to not end up with liblibfoo.a
What's the exact problem on your side?
I guess we could fix both sides if we get rid of the ALIAS shenanigans.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the patch, on Windows memcached.lib is built; with the fix it's libmemcached.lib. The former is probably common on Windows, but the latter is the PHP convention for import libraries (would be libmemcached_a.lib for static libs). If you "fix" this, others building the library might not get the library names they want/expect.

Anyway, applying a patch is not hard, and the build was successful. I've built ext/memcached locally successfully against libmemcached 1.1.4.

The actual problems are lack of automation of doing and testing dependency builds, and of course, that we can hardly watch for new dependency releases (way too many packages). And some packages need way more heavy patching anyway.

Now, someone needs to upload the libmemcached-1.1.4 builds to the download server. Maybe @shivammathur is in the mood. :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uploaded

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR to use it for Windows CI: #564.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@m6w6
Copy link
Contributor

m6w6 commented Oct 14, 2024

Also, the 3.3.0RC1 DLL links on PECL seem broken, is this a fix for this, too?

@cmb69
Copy link
Contributor Author

cmb69 commented Oct 14, 2024

@shivammathur
Copy link

@cmb69 @m6w6 The PECL DLL links should be fixed now.

@m6w6 m6w6 merged commit 089a367 into php-memcached-dev:master Oct 15, 2024
15 checks passed
@cmb69 cmb69 deleted the cmb/win-ci branch October 15, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants