Skip to content

Commit 9459db6

Browse files
committed
run tests on arm64 as well
1 parent 28dabe0 commit 9459db6

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/docker-builder-testing-plugins.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
image: testing
6565
distrib: bookworm
6666
arch: amd64
67+
- runner: ubuntu-24.04-arm
68+
dockerfile: bookworm
69+
image: testing
70+
distrib: bookworm
71+
arch: arm64
6772
- runner: ubuntu-24.04
6873
dockerfile: trixie
6974
image: testing

.github/workflows/generic-plugins.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,22 @@ jobs:
234234
needs.get-environment.outputs.skip_workflow == 'false' &&
235235
needs.get-environment.outputs.stability != 'stable' &&
236236
! cancelled()
237-
runs-on: ubuntu-24.04
237+
strategy:
238+
fail-fast: false
239+
matrix:
240+
include:
241+
- runner: ubuntu-24.04
242+
arch: amd64
243+
- runner: ubuntu-24.04-arm
244+
arch: arm64
245+
runs-on: ${{ matrix.runner }}
238246

239247
container:
240-
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/testing-plugins-bookworm
241-
credentials:
242-
username: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }}
243-
password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }}
248+
# Multi-platform manifest built by docker-builder-testing-plugins.yml: the architecture
249+
# of the runner selects the matching variant.
250+
image: ghcr.io/${{ github.repository }}/testing:bookworm
244251

245-
name: Run robot tests
252+
name: Run robot tests ${{ matrix.arch }}
246253

247254
steps:
248255
- name: Checkout sources
@@ -252,7 +259,7 @@ jobs:
252259
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
253260
with:
254261
path: rust-plugins/target/release/
255-
key: ${{ github.sha }}-${{ github.run_id }}-build-generic-plugins-amd64
262+
key: ${{ github.sha }}-${{ github.run_id }}-build-generic-plugins-${{ matrix.arch }}
256263
fail-on-cache-miss: true
257264

258265
- name: Setup SNMP simulator and run robot tests
@@ -273,7 +280,7 @@ jobs:
273280
if: failure()
274281
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
275282
with:
276-
name: test-generic-plugins-log
283+
name: test-generic-plugins-log-${{ matrix.arch }}
277284
path: /tmp/robot-tests
278285
retention-days: 1
279286

0 commit comments

Comments
 (0)