File tree Expand file tree Collapse file tree 2 files changed +31
-36
lines changed Expand file tree Collapse file tree 2 files changed +31
-36
lines changed Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
12
12
jobs :
13
+ prepare-matrix :
14
+ runs-on : ubuntu-latest
15
+ name : List perl versions
16
+ outputs :
17
+ perl-versions : ${{ steps.action.outputs.perl-versions }}
18
+ steps :
19
+ - name : Perl versions action step
20
+ id : action
21
+ uses : perl-actions/perl-versions@main
22
+ with :
23
+ since-perl : ' 5.8'
24
+ with-devel : ' true'
13
25
14
26
latest-build :
15
27
name : " Build latest"
@@ -29,28 +41,13 @@ jobs:
29
41
build :
30
42
name : " Build versions"
31
43
runs-on : ubuntu-latest
44
+ needs :
45
+ - prepare-matrix
32
46
33
47
strategy :
34
48
fail-fast : false
35
49
matrix :
36
- perl-version :
37
- - " devel"
38
- - " 5.38"
39
- - " 5.36"
40
- - " 5.34"
41
- - " 5.32"
42
- - " 5.30"
43
- - " 5.28"
44
- - " 5.26"
45
- - " 5.24"
46
- - " 5.22"
47
- - " 5.20"
48
- - " 5.18"
49
- - " 5.16"
50
- - " 5.14"
51
- - " 5.12"
52
- - " 5.10"
53
- - " 5.8"
50
+ perl-version : ${{ fromJson (needs.prepare-matrix.outputs.perl-versions) }}
54
51
55
52
steps :
56
53
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 7
7
- ' *'
8
8
workflow_dispatch :
9
9
jobs :
10
+ prepare-matrix :
11
+ runs-on : ubuntu-latest
12
+ name : List perl versions
13
+ outputs :
14
+ perl-versions : ${{ steps.action.outputs.perl-versions }}
15
+ steps :
16
+ - name : Perl versions action step
17
+ id : action
18
+ uses : perl-actions/perl-versions@main
19
+ with :
20
+ since-perl : ' 5.8'
21
+ with-devel : ' true'
22
+
10
23
test-job :
11
24
runs-on : ubuntu-latest
25
+ needs :
26
+ - prepare-matrix
12
27
container :
13
28
image : perl:${{ matrix.perl-version }}-buster
14
29
strategy :
15
30
fail-fast : false
16
31
matrix :
17
- perl-version :
18
- - ' devel'
19
- - ' 5.38'
20
- - ' 5.36'
21
- - ' 5.34'
22
- - ' 5.32'
23
- - ' 5.30'
24
- - ' 5.28'
25
- - ' 5.26'
26
- - ' 5.24'
27
- - ' 5.22'
28
- - ' 5.20'
29
- - ' 5.18'
30
- - ' 5.16'
31
- - ' 5.14'
32
- - ' 5.12'
33
- - ' 5.10'
34
- - ' 5.8'
32
+ perl-version : ${{ fromJson (needs.prepare-matrix.outputs.perl-versions) }}
35
33
name : Perl ${{ matrix.perl-version }}
36
34
steps :
37
35
- uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments