CI: add Linux arm64 CI job

Commit: 
https://github.com/vim/vim/commit/87f65f3857ae00ecd4548043ee3343c87ac45cdd
Author: rhysd <lin90...@yahoo.co.jp>
Date:   Sat Jan 18 17:32:11 2025 +0100

    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 <lin90...@yahoo.co.jp>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 047038933..fc0a47750 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,7 +17,7 @@ permissions:
 
 jobs:
   linux:
-    runs-on: ubuntu-22.04
+    runs-on: ${{ matrix.architecture == 'arm64' && 'ubuntu-22.04-arm' || 
'ubuntu-22.04' }}
 
     env:
       CC: ${{ matrix.compiler }}
@@ -48,6 +48,10 @@ jobs:
           - features: tiny
             compiler: gcc
             extra: [nogui]
+          - features: tiny
+            compiler: gcc
+            extra: [nogui]
+            architecture: arm64
           - features: normal
             shadow: ./src/shadow
             compiler: gcc
@@ -73,6 +77,11 @@ jobs:
             compiler: gcc
             coverage: true
             extra: [unittests]
+          - features: huge
+            compiler: gcc
+            coverage: true
+            extra: [unittests]
+            architecture: arm64
           - features: normal
             compiler: gcc
             extra: [vimtags]
@@ -251,11 +260,19 @@ jobs:
           "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S 
ci/if_ver-2.vim -c quit
 
       - name: Test
+        if: matrix.architecture != 'arm64'
         timeout-minutes: 25
         run: |
           do_test() { echo "$*"; sg audio "sg $(id -gn) '$*'"; }
           do_test make ${SHADOWOPT} ${TEST}
 
+      # `sg audio` does not work on arm64 runner due to permission ('Incorrect 
password' error).
+      - name: Test on arm64
+        if: matrix.architecture == 'arm64'
+        timeout-minutes: 25
+        run: |
+          make ${SHADOWOPT} ${TEST}
+
       - if: ${{ !cancelled() }}
         uses: ./.github/actions/test_artifacts
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tZBwV-0037z5-MD%40256bit.org.

Raspunde prin e-mail lui