Skip to content

Commit 6657ac5

Browse files
committed
Run builds on both ubuntu-24.04 and ...-arm.
1 parent 877b019 commit 6657ac5

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

.github/workflows/build-test.yaml

+29-11
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ on:
1010
jobs:
1111
build:
1212
name: Build image
13-
runs-on: ubuntu-24.04-arm
13+
runs-on: ${{ matrix.runs-on }}
1414
strategy:
1515
fail-fast: false
1616
matrix:
17+
runs-on: [ ubuntu-24.04, ubuntu-24.04-arm ]
1718
os: [ fedora-rawhide, fedora-41, fedora-40, centos-9-stream, rocky-9, rocky-8, almalinux-9, almalinux-8 ]
1819
docker: [ docker ]
1920
timeout-minutes: 15
2021
steps:
2122
- uses: actions/checkout@v4
2223
- uses: ./.github/actions/install-podman-arm
24+
if: matrix.runs-on == 'ubuntu-24.04-arm'
2325
- name: Separate git work tree with just the files needed for build
2426
run: git worktree add --no-checkout ../minimize-for-build
2527
- name: Populate with the Dockerfile
@@ -63,11 +65,12 @@ jobs:
6365

6466
test-docker:
6567
name: Run with docker
66-
runs-on: ubuntu-24.04-arm
68+
runs-on: ${{ matrix.runs-on }}
6769
needs: [ build ]
6870
strategy:
6971
fail-fast: false
7072
matrix:
73+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
7174
include:
7275
- os: fedora-41
7376
- os: fedora-41
@@ -92,6 +95,7 @@ jobs:
9295
steps:
9396
- uses: actions/checkout@v4
9497
- uses: ./.github/actions/install-podman-arm
98+
if: matrix.runs-on == 'ubuntu-24.04-arm'
9599
- uses: ./.github/actions/docker-cgroups-ubuntu-22
96100
- uses: actions/download-artifact@v4
97101
with:
@@ -111,11 +115,12 @@ jobs:
111115

112116
test-rootless-docker:
113117
name: Run with rootless docker
114-
runs-on: ubuntu-24.04-arm
118+
runs-on: ${{ matrix.runs-on }}
115119
needs: [ build ]
116120
strategy:
117121
fail-fast: false
118122
matrix:
123+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
119124
include:
120125
- os: fedora-rawhide
121126
readonly: --read-only
@@ -131,6 +136,7 @@ jobs:
131136
steps:
132137
- uses: actions/checkout@v4
133138
- uses: ./.github/actions/install-podman-arm
139+
if: matrix.runs-on == 'ubuntu-24.04-arm'
134140
- run: sudo systemctl disable --now docker.service docker.socket
135141
- run: |
136142
cat <<EOT | sudo tee "/etc/apparmor.d/home.runner.bin.rootlesskit"
@@ -160,16 +166,18 @@ jobs:
160166

161167
test-podman:
162168
name: Run with sudo podman 4
163-
runs-on: ubuntu-24.04-arm
169+
runs-on: ${{ matrix.runs-on }}
164170
needs: [ build ]
165171
strategy:
166172
fail-fast: false
167173
matrix:
174+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
168175
os: [ fedora-41, centos-9-stream ]
169176
timeout-minutes: 30
170177
steps:
171178
- uses: actions/checkout@v4
172179
- uses: ./.github/actions/install-podman-arm
180+
if: matrix.runs-on == 'ubuntu-24.04-arm'
173181
- uses: actions/download-artifact@v4
174182
with:
175183
name: freeipa-server-${{ matrix.os }}
@@ -183,11 +191,12 @@ jobs:
183191

184192
test-rootless-podman:
185193
name: Run with rootless podman 4
186-
runs-on: ubuntu-24.04-arm
194+
runs-on: ${{ matrix.runs-on }}
187195
needs: [ build ]
188196
strategy:
189197
fail-fast: false
190198
matrix:
199+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
191200
include:
192201
- os: fedora-41
193202
readonly: --read-only
@@ -201,6 +210,7 @@ jobs:
201210
steps:
202211
- uses: actions/checkout@v4
203212
- uses: ./.github/actions/install-podman-arm
213+
if: matrix.runs-on == 'ubuntu-24.04-arm'
204214
- uses: actions/download-artifact@v4
205215
with:
206216
name: freeipa-server-${{ matrix.os }}
@@ -216,11 +226,12 @@ jobs:
216226

217227
test-rootless-podman-22-04:
218228
name: Run with rootless podman 4 on Ubuntu 22.04
219-
runs-on: ubuntu-22.04-arm
229+
runs-on: ${{ matrix.runs-on }}
220230
needs: [ build ]
221231
strategy:
222232
fail-fast: false
223233
matrix:
234+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
224235
include:
225236
- os: fedora-rawhide
226237
readonly: --read-only
@@ -250,11 +261,12 @@ jobs:
250261

251262
test-upgrade:
252263
name: Upgrade from older version or build
253-
runs-on: ubuntu-24.04-arm
264+
runs-on: ${{ matrix.runs-on }}
254265
needs: [ build ]
255266
strategy:
256267
fail-fast: false
257268
matrix:
269+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
258270
include:
259271
- os: fedora-rawhide
260272
data-from: fedora-41
@@ -270,6 +282,7 @@ jobs:
270282
steps:
271283
- uses: actions/checkout@v4
272284
- uses: ./.github/actions/install-podman-arm
285+
if: matrix.runs-on == 'ubuntu-24.04-arm'
273286
- uses: ./.github/actions/docker-cgroups-ubuntu-22
274287
- uses: actions/download-artifact@v4
275288
with:
@@ -283,11 +296,12 @@ jobs:
283296

284297
test-upgrade-podman:
285298
name: Upgrade from older version with podman 4
286-
runs-on: ubuntu-24.04-arm
299+
runs-on: ${{ matrix.runs-on }}
287300
needs: [ build ]
288301
strategy:
289302
fail-fast: false
290303
matrix:
304+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
291305
include:
292306
- os: fedora-41
293307
data-from: fedora-40
@@ -297,6 +311,7 @@ jobs:
297311
steps:
298312
- uses: actions/checkout@v4
299313
- uses: ./.github/actions/install-podman-arm
314+
if: matrix.runs-on == 'ubuntu-24.04-arm'
300315
- uses: actions/download-artifact@v4
301316
with:
302317
name: freeipa-server-${{ matrix.os }}
@@ -311,16 +326,18 @@ jobs:
311326

312327
test-k3s:
313328
name: Run with K3s with docker
314-
runs-on: ubuntu-24.04-arm
329+
runs-on: ${{ matrix.runs-on }}
315330
needs: [ build ]
316331
strategy:
317332
fail-fast: false
318333
matrix:
334+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
319335
os: [ fedora-rawhide, fedora-41, rocky-9, almalinux-8, centos-9-stream ]
320336
timeout-minutes: 30
321337
steps:
322338
- uses: actions/checkout@v4
323339
- uses: ./.github/actions/install-podman-arm
340+
if: matrix.runs-on == 'ubuntu-24.04-arm'
324341
- uses: ./.github/actions/docker-cgroups-ubuntu-22
325342
- uses: actions/download-artifact@v4
326343
with:
@@ -346,17 +363,19 @@ jobs:
346363
347364
build-test-rhel-podman:
348365
name: Build and test RHEL image
349-
runs-on: ubuntu-24.04-arm
366+
runs-on: ${{ matrix.runs-on }}
350367
needs: [ test-subscription ]
351368
if: needs.test-subscription.outputs.has_rhel_subscriptions == 1
352369
strategy:
353370
fail-fast: false
354371
matrix:
372+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
355373
os: [ rhel-9, rhel-8 ]
356374
timeout-minutes: 30
357375
steps:
358376
- uses: actions/checkout@v4
359377
- uses: ./.github/actions/install-podman-arm
378+
if: matrix.runs-on == 'ubuntu-24.04-arm'
360379
- name: For RHEL builds, use entitlements
361380
uses: ./.github/actions/podman-entitlement
362381
with:
@@ -366,4 +385,3 @@ jobs:
366385
run: podman build -t localhost/freeipa-server:${{ matrix.os }} -f Dockerfile.${{ matrix.os }} .
367386
- name: Run master
368387
run: docker=podman tests/run-master-and-replica.sh localhost/freeipa-server:${{ matrix.os }}
369-

0 commit comments

Comments
 (0)