Skip to content

Commit 487eb7b

Browse files
committed
Add ARM64 as a runner for a few tests
This allows us to do some testing on another arch to catch arch-spciecifc bugs if any. Signed-off-by: Simo Sorce <simo@redhat.com>
1 parent 04879db commit 487eb7b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17+
runs-on: [ubuntu-24.04, ubuntu-24.04-arm]
1718
name: [fedora, debian, centos9, centos10, ubuntu, almalinux8]
1819
compiler: [gcc, clang]
1920
token: [softokn, softhsm, kryoptic]
@@ -47,6 +48,17 @@ jobs:
4748
token: kryoptic
4849
- name: almalinux8
4950
token: kryoptic
51+
# Test on ARM only some use cases
52+
- runs-on: ubuntu-24.04-arm
53+
name: debian
54+
- runs-on: ubuntu-24.04-arm
55+
name: centos9
56+
- runs-on: ubuntu-24.04-arm
57+
name: centos10
58+
- runs-on: ubuntu-24.04-arm
59+
name: ubuntu
60+
- runs-on: ubuntu-24.04-arm
61+
name: almalinux8
5062
container: ${{ matrix.container }}
5163
steps:
5264
- name: Install Dependencies
@@ -103,8 +115,14 @@ jobs:
103115
uses: actions/checkout@v4
104116

105117
- name: Setup
118+
id: setup
106119
if : ( steps.skip-check.outputs.skiptest != 'true' )
107120
run: |
121+
if [ "${{ matrix.runs-on }}" = "ubuntu-24.04-arm" ]; then
122+
echo "cpu=ARM64" >> $GITHUB_OUTPUT
123+
else
124+
echo "cpu=X86_64" >> $GITHUB_OUTPUT
125+
fi
108126
git config --global --add safe.directory \
109127
/__w/pkcs11-provider/pkcs11-provider
110128
git submodule update --init
@@ -254,4 +272,3 @@ jobs:
254272
builddir/tests/${{ matrix.token }}/p11prov-debug.log
255273
builddir/tests/${{ matrix.token }}/testvars
256274
builddir/tests/${{ matrix.token }}/openssl.cnf
257-

0 commit comments

Comments
 (0)