@@ -15,14 +15,16 @@ jobs:
1515 runs-on : ubuntu-latest
1616 outputs :
1717 cache-key : ${{ steps.cache-key.outputs.cache-key }}
18+ matrix-alpine : ${{ steps.alpine.outputs.matrix }}
19+ matrix-ubuntu : ${{ steps.ubuntu.outputs.matrix }}
1820 steps :
1921 - uses : actions/checkout@v4
2022 with :
2123 fetch-depth : 0
2224
2325 - name : Install packages
2426 run : |
25- python3 -m pip install license-expression
27+ python3 -m pip install license-expression PyYAML
2628 python3 -m pip install --pre meson
2729
2830 - name : Calculate cache key
@@ -56,22 +58,57 @@ jobs:
5658 run : |
5759 ./tools/fake_tty.py ./tools/sanity_checks.py
5860
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 : ./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 : ./tools/filter_matrix.py {0}
79+ run : |
6780 - platform: aarch64
6881 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'
6986 - platform: ppc64le
7087 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'
7193 - platform: s390x
7294 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'
73100 - platform: x86_64
74101 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) }}
75112 steps :
76113 - uses : actions/checkout@v4
77114 with :
@@ -112,28 +149,7 @@ jobs:
112149 strategy :
113150 fail-fast : false
114151 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) }}
137153 steps :
138154 - uses : actions/checkout@v4
139155 with :
0 commit comments