-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Windows Testing #235
Comments
strawberry perl is available on https://github.com/shogo82148/actions-setup-perl/releases/tag/v1.5.0 |
By default, windows-latest comes with Strawberry Perl installed. This needs to be removed from the PATH. When you then download and run a portable strawberry, those paths need to be added to the PATH. It looks like we're seeing:
Attempting to build/install with the version that comes already installed vs using the portable you're asking for in the workflow file. See the example here: |
Oh, I forgot to add I'll fix it. |
Got this one working today! https://github.com/perhunter/slurp/blob/master/.github/workflows/windows.yml Works well. Thank you again! |
Hi!
Thank you for creating this! It works perfectly on Mac and Linux. I am, however, having issues running tests on Windows (one problem I think you're aware of already). However, I come bringing possible solutions.
https://github.com/p5-UV/Alien-libuv/blob/master/.github/workflows/windows.yml I am using this setup now. It's using a friend's S3 bucket site mirror for Strawberry Perl's site. It fixes the problem of not being able to test on any version. It saves you from actually having to build Perl on the Windows machine with MinGW.
If you can alter your actions to use this method along with your caching mechanism, it would allow you to have working tests on Windows for any version of Perl where there's a portable.
Running this particular set of tests I linked to above was taking around 10 minutes per run on AppVeyor and now runs in around 2 minutes and 30 seconds on GitHub Actions. It allows testing both pure Perl and XS modules and already has cpanm setup from the beginning.
Thoughts?
The text was updated successfully, but these errors were encountered: