Skip to content

Commit d6d97f2

Browse files
committed
[chore] test both archs
1 parent f6e7b7b commit d6d97f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ jobs:
6868
path: ./instrumentation/dist/*.${{ matrix.SYS_PACKAGE }}
6969

7070
packaging-integration-tests:
71-
runs-on: ubuntu-24.04
7271
strategy:
7372
matrix:
7473
SYS_PACKAGE: [ "deb", "rpm" ]
7574
lang: [ "java", "nodejs", "dotnet" ]
75+
arch: [ "amd64", "arm64" ]
76+
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
7677
steps:
7778
- name: Check out the codebase.
7879
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -82,8 +83,8 @@ jobs:
8283
# in the step "Build ${{ matrix.ARCH }} ${{ matrix.SYS_PACKAGE }} package", and once here in the context of
8384
# running the packacking integration tests. We should run the packaging integration tests for both CPU
8485
# architectures (instead of only amd64), but ideally only build each combination of CPU arch & SYS_PACKAGE once.
85-
- name: Run packaging integration tests for ${{ matrix.SYS_PACKAGE }}/${{ matrix.lang }}
86-
run: make packaging-integration-test-${{ matrix.SYS_PACKAGE }}-${{ matrix.lang }}
86+
- name: Run packaging integration tests for ${{ matrix.SYS_PACKAGE }}/${{ matrix.lang }}/${{ matrix.arch }}
87+
run: ARCH=${{ matrix.arch }} make packaging-integration-test-${{ matrix.SYS_PACKAGE }}-${{ matrix.lang }}
8788

8889
publish-stable:
8990
runs-on: ubuntu-24.04

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARCH=amd64
1+
ARCH?=amd64
22
INSTALL_DIR=/usr/lib/opentelemetry/otelinject
33

44
# Docker repository used.

0 commit comments

Comments
 (0)