Skip to content

Commit

Permalink
Add CI job for testing on Linux aarch64 via QEMU (hardware emulation)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Apr 27, 2024
1 parent 4b4ba19 commit 9edf22e
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,50 @@ name: CI
on:
push:
branches:
- master
- master
pull_request:
branches:
- master

jobs:
build:
name: Linux x86_64
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: make -j

- name: Check
run: |
file hifiasm | grep x86-64
./hifiasm
build-aarch64:
name: Linux aarch64
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc]

steps:
- name: Checkout minimap2
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- name: Compile with ${{ matrix.compiler }}
run: make CC=${{ matrix.compiler }}
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/hifiasm"
install: |
apt-get update -q -y
apt-get install -q -y make gcc-10 g++-10 file
run: |
cd /hifiasm
make CC=gcc-10 CXX=g++-10 ARCH_FLAGS="-march=native" -j
file hifiasm | grep aarch64
./hifiasm

0 comments on commit 9edf22e

Please sign in to comment.