Skip to content

Commit 87f65f3

Browse files
rhysdchrisbra
authored andcommitted
CI: add Linux arm64 CI job
This patch adds jobs to run tests on arm64 GitHub Actions hosted runner for tiny and huge features. closes: #16477 Signed-off-by: rhysd <lin90162@yahoo.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 7c92e88 commit 87f65f3

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
linux:
20-
runs-on: ubuntu-22.04
20+
runs-on: ${{ matrix.architecture == 'arm64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }}
2121

2222
env:
2323
CC: ${{ matrix.compiler }}
@@ -48,6 +48,10 @@ jobs:
4848
- features: tiny
4949
compiler: gcc
5050
extra: [nogui]
51+
- features: tiny
52+
compiler: gcc
53+
extra: [nogui]
54+
architecture: arm64
5155
- features: normal
5256
shadow: ./src/shadow
5357
compiler: gcc
@@ -73,6 +77,11 @@ jobs:
7377
compiler: gcc
7478
coverage: true
7579
extra: [unittests]
80+
- features: huge
81+
compiler: gcc
82+
coverage: true
83+
extra: [unittests]
84+
architecture: arm64
7685
- features: normal
7786
compiler: gcc
7887
extra: [vimtags]
@@ -251,11 +260,19 @@ jobs:
251260
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
252261
253262
- name: Test
263+
if: matrix.architecture != 'arm64'
254264
timeout-minutes: 25
255265
run: |
256266
do_test() { echo "$*"; sg audio "sg $(id -gn) '$*'"; }
257267
do_test make ${SHADOWOPT} ${TEST}
258268
269+
# `sg audio` does not work on arm64 runner due to permission ('Incorrect password' error).
270+
- name: Test on arm64
271+
if: matrix.architecture == 'arm64'
272+
timeout-minutes: 25
273+
run: |
274+
make ${SHADOWOPT} ${TEST}
275+
259276
- if: ${{ !cancelled() }}
260277
uses: ./.github/actions/test_artifacts
261278

0 commit comments

Comments
 (0)