Skip to content

Commit e041f6d

Browse files
geniooalders
authored andcommitted
use shogo for Windows testing now that GH broke PATH editing
1 parent bbac0ed commit e041f6d

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

.github/workflows/windows.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,26 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
perl-version:
16-
- '5.32.0.1'
17-
# - '5.30.3.1'
18-
# - '5.28.2.1'
19-
# - '5.26.3.1'
20-
# - '5.24.4.1'
21-
# - '5.22.3.1'
22-
# - '5.20.3.3'
23-
# - '5.18.4.1'
24-
# - '5.16.3.1'
25-
- '5.14.4.1'
16+
- '5.30'
17+
# - '5.28'
18+
# - '5.26'
19+
# - '5.24'
20+
# - '5.22'
21+
# - '5.20'
22+
# - '5.18'
23+
# - '5.16'
24+
- '5.14'
2625
steps:
26+
- name: Setup perl
27+
uses: shogo82148/actions-setup-perl@v1
28+
with:
29+
perl-version: ${{ matrix.perl-version }}
30+
distribution: strawberry
2731
- name: Set git to use LF
2832
run: |
2933
git config --global core.autocrlf false
3034
git config --global core.eol lf
3135
- uses: actions/checkout@v2
32-
- name: Remove GH's Strawberry Perl and MinGW from Path
33-
run: |
34-
echo "::set-env name=PATH::$(($env:Path.split(";", [System.StringSplitOptions]::RemoveEmptyEntries) | where{-not ($_ -clike '*Strawberry*' -or $_ -clike '*mingw*')}) -join ';')"
35-
- name: Add our new Strawberry Portable Perl Paths
36-
run: |
37-
Remove-Item C:\straw -Recurse -ErrorAction Ignore
38-
mkdir C:\straw
39-
echo "::add-path::C:\straw\c\bin;C:\straw\perl\site\bin;C:\straw\perl\bin"
40-
echo $env:PATH
41-
- name: Set up our new Strawberry Perl
42-
run: |
43-
Invoke-WebRequest -Uri https://strawberry.perl.bot/download/${{ matrix.perl-version }}/strawberry-perl-${{ matrix.perl-version }}-64bit-portable.zip -OutFile ${{matrix.perl-version}}.zip
44-
7z x "${{matrix.perl-version}}.zip" -oC:\straw
4536
- name: perl -V
4637
run: perl -V
4738
- name: Ensure old Strawberries have a good toolchain

0 commit comments

Comments
 (0)