77
88jobs :
99 build_varnish :
10- name : Building Varnish (${{ matrix.dist }}:${{ matrix.release }} for ${{ matrix.arch }})
10+ name : Building Varnish (${{ matrix.target }} for ${{ matrix.arch }})
1111 runs-on : ubuntu-latest
1212 strategy : &strategy
1313 fail-fast : false
1414 matrix :
15- # arch:
16- # - amd64
15+ arch :
16+ - amd64
1717# - arm64
18- include :
19- - dist : debian
20- release : trixie
21- pkg : deb
22- - dist : almalinux
23- release : 10
24- pkg : rpm
25- # - dist: debian
26- # release: bullseye
27- # pkg: deb
28- # - dist: debian
29- # release: bookworm
30- # pkg: deb
31- # - dist: ubuntu
32- # release: jammy
33- # pkg: deb
34- # - dist: ubuntu
35- # release: noble
36- # pkg: deb
37- #
38- # - dist: almalinux
39- # release: 8
40- # pkg: rpm
41- # - dist: almalinux
42- # release: 9
43- # pkg: rpm
44- #
45- # - dist: amazonlinux
46- # release: 2023
47- # pkg: rpm
18+ target :
19+ - debian-bookworm-deb
20+ - debian-bullseye-deb
21+ - debian-trixie-deb
22+ - almalinux-8-rpm
23+ - almalinux-9-rpm
24+ - almalinux-10-rpm
25+ - amazonlinux-2023-rpm
4826 steps :
4927 - name : Checkout Code
5028 uses : actions/checkout@v5
@@ -62,11 +40,10 @@ jobs:
6240
6341 mkdir -p packages
6442
65- EXT=${{ matrix.pkg }}
66- ARCH=${{ matrix.arch }}
67- PARAM_ARCH=amd64
68- PARAM_DIST=${{ matrix.dist }}
69- PARAM_RELEASE=${{ matrix.release }}
43+ PARAM_ARCH=${{ matrix.arch }}
44+ PARAM_DIST=`echo ${{ matrix.target}} | cut -d- -f 1`
45+ PARAM_RELEASE=`echo ${{ matrix.target }} | cut -d- -f 2`
46+ EXT=`echo ${{ matrix.target }} | cut -d- -f 3`
7047
7148 docker run \
7249 --rm \
@@ -82,29 +59,24 @@ jobs:
8259 - name : Upload artifacts
8360 uses : actions/upload-artifact@v4
8461 with :
85- name : varnish-${{ matrix.dist }}-${{ matrix.release }}
62+ name : varnish-${{ matrix.target }}
8663 path : packages/*/*/*
8764 build_vmod :
8865 needs : build_varnish
8966 runs-on : ubuntu-latest
90- name : Building varnish-modules (${{ matrix.dist }}:${{ matrix.release }} for ${{ matrix.arch }})
91- strategy : &strategy
67+ name : Building varnish-modules (${{ matrix.target }} for ${{ matrix.arch }})
68+ strategy :
9269 fail-fast : false
9370 matrix :
71+ arch :
72+ - amd64
73+ # - arm64
74+ target :
75+ - debian-trixie-deb
76+ - almalinux-10-rpm
9477 package :
9578 - varnish-modules
9679 - vmod-uuid
97- # arch:
98- # - amd64
99- # - arm64
100- include :
101- - dist : debian
102- release : trixie
103- pkg : deb
104- - dist : almalinux
105- release : 10
106- pkg : rpm
107-
10880 steps :
10981 - name : Checkout Code
11082 uses : actions/checkout@v5
@@ -114,15 +86,14 @@ jobs:
11486 - name : Download a specific artifact
11587 uses : actions/download-artifact@v4
11688 with :
117- name : varnish-${{ matrix.dist }}-${{ matrix.release }}
89+ name : varnish-${{ matrix.target }}
11890 path : packages
11991 - name : Build
12092 run : |
121- EXT=${{ matrix.pkg }}
122- PACKAGE=${{ matrix.package }}
123- PARAM_ARCH=amd64
124- PARAM_DIST=${{ matrix.dist }}
125- PARAM_RELEASE=${{ matrix.release }}
93+ PARAM_ARCH=${{ matrix.arch }}
94+ PARAM_DIST=`echo ${{ matrix.target}} | cut -d- -f 1`
95+ PARAM_RELEASE=`echo ${{ matrix.target }} | cut -d- -f 2`
96+ EXT=`echo ${{ matrix.target }} | cut -d- -f 3`
12697
12798 ( cd $PACKAGE/; tar cvzf ../debian.tar.gz debian --dereference ; )
12899 ( cd $PACKAGE/; tar cvzf ../redhat.tar.gz redhat --dereference ; )
0 commit comments