@@ -15,14 +15,16 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
outputs :
17
17
cache-key : ${{ steps.cache-key.outputs.cache-key }}
18
+ matrix-alpine : ${{ steps.alpine.outputs.matrix }}
19
+ matrix-ubuntu : ${{ steps.ubuntu.outputs.matrix }}
18
20
steps :
19
21
- uses : actions/checkout@v4
20
22
with :
21
23
fetch-depth : 0
22
24
23
25
- name : Install packages
24
26
run : |
25
- python3 -m pip install license-expression
27
+ python3 -m pip install license-expression PyYAML
26
28
python3 -m pip install --pre meson
27
29
28
30
- name : Calculate cache key
@@ -56,22 +58,57 @@ jobs:
56
58
run : |
57
59
./tools/fake_tty.py ./tools/sanity_checks.py
58
60
59
- Ubuntu :
60
- name : Ubuntu (${{ matrix.platform }})
61
- runs-on : ${{ matrix.runner }}
62
- needs : prelude
63
- strategy :
64
- fail-fast : false
65
- matrix :
66
- include :
61
+ - name : Build Ubuntu matrix
62
+ id : ubuntu
63
+ shell : $GITHUB_WORKSPACE/tools/filter_matrix.py {0}
64
+ run : |
65
+ - platform: aarch64
66
+ runner: ubuntu-24.04-arm
67
+ - platform: ppc64le
68
+ runner: ubuntu-24.04-ppc64le
69
+ selfhosted: true
70
+ - platform: s390x
71
+ runner: ubuntu-24.04-s390x
72
+ selfhosted: true
73
+ - platform: x86_64
74
+ runner: ubuntu-latest
75
+
76
+ - name : Build Alpine matrix
77
+ id : alpine
78
+ shell : $GITHUB_WORKSPACE/tools/filter_matrix.py {0}
79
+ run : |
67
80
- platform: aarch64
68
81
runner: ubuntu-24.04-arm
82
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
83
+ - platform: armv7
84
+ runner: ubuntu-24.04-arm
85
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
69
86
- platform: ppc64le
70
87
runner: ubuntu-24.04-ppc64le
88
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/ppc64le/apk.static#!sha256!96ba92b49c8cc97fad06f0dfe3c50ec25c3344890e479999ded8752bf9e80d7f'
89
+ selfhosted: true
90
+ - platform: riscv64
91
+ runner: ubuntu-24.04-arm
92
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
71
93
- platform: s390x
72
94
runner: ubuntu-24.04-s390x
95
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/s390x/apk.static#!sha256!368996f2908ec8f10f1de500bc97a9bd1c3b0b46ce0bd44983ac09862cbab6d5'
96
+ selfhosted: true
97
+ - platform: x86
98
+ runner: ubuntu-latest
99
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
73
100
- platform: x86_64
74
101
runner: ubuntu-latest
102
+ apk-tools-url: 'https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
103
+
104
+ Ubuntu :
105
+ name : Ubuntu (${{ matrix.platform }})
106
+ runs-on : ${{ matrix.runner }}
107
+ needs : prelude
108
+ strategy :
109
+ fail-fast : false
110
+ matrix :
111
+ include : ${{ fromJson(needs.prelude.outputs.matrix-ubuntu) }}
75
112
steps :
76
113
- uses : actions/checkout@v4
77
114
with :
@@ -112,28 +149,7 @@ jobs:
112
149
strategy :
113
150
fail-fast : false
114
151
matrix :
115
- include :
116
- - platform : aarch64
117
- runner : ubuntu-24.04-arm
118
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
119
- - platform : armv7
120
- runner : ubuntu-24.04-arm
121
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
122
- - platform : ppc64le
123
- runner : ubuntu-24.04-ppc64le
124
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/ppc64le/apk.static#!sha256!96ba92b49c8cc97fad06f0dfe3c50ec25c3344890e479999ded8752bf9e80d7f'
125
- - platform : riscv64
126
- runner : ubuntu-24.04-arm
127
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/aarch64/apk.static#!sha256!27a975638ddc95a411c9f17c63383e335da9edf6bb7de2281d950c291a11f878'
128
- - platform : s390x
129
- runner : ubuntu-24.04-s390x
130
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/s390x/apk.static#!sha256!368996f2908ec8f10f1de500bc97a9bd1c3b0b46ce0bd44983ac09862cbab6d5'
131
- - platform : x86
132
- runner : ubuntu-latest
133
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
134
- - platform : x86_64
135
- runner : ubuntu-latest
136
- apk-tools-url : ' https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.7/x86_64/apk.static#!sha256!bdd044e0fd6cc388c5e571e1093efa5f35f7767cc5aa338b0a2576a429009a62'
152
+ include : ${{ fromJson(needs.prelude.outputs.matrix-alpine) }}
137
153
steps :
138
154
- uses : actions/checkout@v4
139
155
with :
0 commit comments