From 94248a8ceadc867e3ea69f859f5f467c68ea146e Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Wed, 10 Aug 2022 14:59:32 +0300 Subject: [PATCH] Add CI job for Ubuntu 20.04 aarch64 Signed-off-by: Martin Tzvetanov Grigorov --- .github/workflows/ci.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b77bc162..8eb2f062 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,7 +15,32 @@ jobs: steps: - name: Checkout bwa - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Compile with ${{ matrix.compiler }} run: make CC=${{ matrix.compiler }} + + build-aarch64: + runs-on: ubuntu-latest + strategy: + matrix: + compiler: [gcc, clang] + + steps: + - name: Checkout bwa + uses: actions/checkout@v3 + + - name: Compile with ${{ matrix.compiler }} + uses: uraimo/run-on-arch-action@v2 + with: + arch: aarch64 + distro: ubuntu20.04 + githubToken: ${{ github.token }} + dockerRunArgs: | + --volume "${PWD}:/bwa" + install: | + apt-get update -q -y + apt-get install -q -y make ${{ matrix.compiler }} zlib1g-dev + run: | + cd /bwa + make CC=${{ matrix.compiler }}