Skip to content

Commit 77ba09a

Browse files
authored
add CI coverage for aarch64-linux (#4713)
* add CI coverage for `aarch64-linux` https://github.com/actions/partner-runner-images/blob/main/images/arm-ubuntu-24-image.md * configure `setup-eask` to use x86_64 or arm64 https://github.com/emacs-eask/setup-eask?tab=readme-ov-file#-usage * fix Cmake dependency * fix Setup Eask step
1 parent 53f4924 commit 77ba09a

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest, macos-latest, windows-latest]
16+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
1717
emacs-version:
1818
- 27.2
1919
- 28.2
@@ -23,6 +23,9 @@ jobs:
2323
- os: ubuntu-latest
2424
emacs-version: snapshot
2525
experimental: true
26+
- os: ubuntu-24.04-arm
27+
emacs-version: snapshot
28+
experimental: true
2629
- os: macos-latest
2730
emacs-version: snapshot
2831
experimental: true
@@ -38,18 +41,32 @@ jobs:
3841
with:
3942
version: ${{ matrix.emacs-version }}
4043

41-
- uses: emacs-eask/setup-eask@master
44+
- name: Setup Eask
45+
uses: emacs-eask/setup-eask@master
46+
if: matrix.os != 'ubuntu-24.04-arm'
47+
with:
48+
version: 'snapshot'
49+
architecture: 'x64'
50+
51+
- name: Setup Eask for linux-aarch64
52+
uses: emacs-eask/setup-eask@master
53+
if: matrix.os == 'ubuntu-24.04-arm'
4254
with:
4355
version: 'snapshot'
56+
architecture: 'arm64'
4457

4558
- name: Setup cmake
4659
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
4760
uses: jwlawson/actions-setup-cmake@v1.4
4861
with:
4962
cmake-version: '3.18.x'
5063

64+
- name: Setup cmake for linux-aarch64
65+
if: matrix.os == 'ubuntu-24.04-arm'
66+
uses: lukka/get-cmake@latest
67+
5168
- name: Check cmake
52-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
69+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
5370
run: "cmake --version"
5471

5572
- uses: actions/setup-python@v5.1.0
@@ -74,19 +91,19 @@ jobs:
7491
- uses: actions/checkout@v4
7592

7693
- name: Grant execution permission
77-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
94+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
7895
run: chmod -R 777 ./
7996

8097
- name: Run tests (Unix)
81-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
98+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
8299
run: make unix-ci
83100

84101
- name: Run tests (Windows)
85102
if: matrix.os == 'windows-latest'
86103
run: make windows-ci
87104

88105
- name: Move built artifact (Unix)
89-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
106+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
90107
run: |
91108
mv -f ./.eask/ ./test/downstream/.eask/
92109
mv -f ./dist/ ./test/downstream/dist/

0 commit comments

Comments
 (0)