Skip to content

Commit

Permalink
add CI coverage for aarch64-linux (#4713)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
peterbecich authored Feb 16, 2025
1 parent 53f4924 commit 77ba09a
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
emacs-version:
- 27.2
- 28.2
Expand All @@ -23,6 +23,9 @@ jobs:
- os: ubuntu-latest
emacs-version: snapshot
experimental: true
- os: ubuntu-24.04-arm
emacs-version: snapshot
experimental: true
- os: macos-latest
emacs-version: snapshot
experimental: true
Expand All @@ -38,18 +41,32 @@ jobs:
with:
version: ${{ matrix.emacs-version }}

- uses: emacs-eask/setup-eask@master
- name: Setup Eask
uses: emacs-eask/setup-eask@master
if: matrix.os != 'ubuntu-24.04-arm'
with:
version: 'snapshot'
architecture: 'x64'

- name: Setup Eask for linux-aarch64
uses: emacs-eask/setup-eask@master
if: matrix.os == 'ubuntu-24.04-arm'
with:
version: 'snapshot'
architecture: 'arm64'

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

- name: Setup cmake for linux-aarch64
if: matrix.os == 'ubuntu-24.04-arm'
uses: lukka/get-cmake@latest

- name: Check cmake
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
run: "cmake --version"

- uses: actions/setup-python@v5.1.0
Expand All @@ -74,19 +91,19 @@ jobs:
- uses: actions/checkout@v4

- name: Grant execution permission
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
run: chmod -R 777 ./

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

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

- name: Move built artifact (Unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest'
run: |
mv -f ./.eask/ ./test/downstream/.eask/
mv -f ./dist/ ./test/downstream/dist/
Expand Down

0 comments on commit 77ba09a

Please sign in to comment.