Skip to content

Commit 77c0a6e

Browse files
authored
Build on Github Actions Linux ARM64 target (#659)
IB-8359 Signed-off-by: Raul Metsma <[email protected]>
1 parent cecba69 commit 77c0a6e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
run: |
5151
cmake --preset ${{ matrix.target }} -DCMAKE_BUILD_TYPE=RelWithDebInfo
5252
cmake --build --preset ${{ matrix.target }}
53-
cmake --build --preset ${{ matrix.target }} --target test pkcs11sign zipdebug embedlibs pkgbuild
53+
cmake --build --preset ${{ matrix.target }} --target test pkcs11sign embedlibs
54+
cmake --build --preset ${{ matrix.target }} --target zipdebug pkgbuild
5455
- name: Build ${{ matrix.target }}
5556
if: matrix.target != 'macos'
5657
run: |
@@ -126,12 +127,13 @@ jobs:
126127
name: fedora_${{ matrix.container }}
127128
path: build/libdigidocpp*.rpm
128129
ubuntu:
129-
name: Build on Ubuntu ${{ matrix.container }}
130-
runs-on: ubuntu-latest
130+
name: Build on Ubuntu ${{ matrix.container }} ${{ matrix.arch }}
131+
runs-on: ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}
131132
container: ubuntu:${{ matrix.container }}
132133
strategy:
133134
matrix:
134135
container: ['22.04', '24.04', '24.10']
136+
arch: ['amd64', 'arm64']
135137
env:
136138
DEBIAN_FRONTEND: noninteractive
137139
DEBFULLNAME: github-actions
@@ -148,14 +150,14 @@ jobs:
148150
dch --distribution $(lsb_release -cs) -v ${VERSIONEX} "Release ${VERSIONEX}."
149151
- name: Build packages
150152
run: |
151-
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 dpkg-buildpackage -us -uc
153+
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-${{ matrix.arch }} dpkg-buildpackage -us -uc
152154
mv ../libdigidocpp*.* .
153155
- name: Lintian
154156
run: lintian *.deb;
155157
- name: Archive artifacts
156158
uses: actions/upload-artifact@v4
157159
with:
158-
name: ubuntu_${{ matrix.container }}
160+
name: ubuntu_${{ matrix.container }}_${{ matrix.arch }}
159161
path: libdigidocpp*.*
160162
windows:
161163
name: Build on Windows

0 commit comments

Comments
 (0)