mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-15 13:07:55 +08:00
Add CI job for Linux & Mac ARM64 too (#1205)
* Add CI job for Linux ARM64 too Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Add build job for Mac ARM64 too Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Pass "arm_neon=1 aarch64=1" when building on ARM64 Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * change aarch64 to arm64 for the Mac ARM64 check Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> --------- Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
53
.github/workflows/ci.yaml
vendored
53
.github/workflows/ci.yaml
vendored
@@ -7,7 +7,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux-x8664:
|
||||||
|
name: Linux x86_64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -15,7 +16,53 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout minimap2
|
- name: Checkout minimap2
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Compile with ${{ matrix.compiler }}
|
- name: Compile with ${{ matrix.compiler }}
|
||||||
run: make CC=${{ matrix.compiler }}
|
run: |
|
||||||
|
make CC=${{ matrix.compiler }}
|
||||||
|
file minimap2 | grep x86-64
|
||||||
|
|
||||||
|
build-linux-aarch64:
|
||||||
|
name: Linux aarch64
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Compile with ${{ matrix.compiler }}
|
||||||
|
uses: uraimo/run-on-arch-action@v2
|
||||||
|
with:
|
||||||
|
arch: aarch64
|
||||||
|
distro: ubuntu22.04
|
||||||
|
githubToken: ${{ github.token }}
|
||||||
|
dockerRunArgs: |
|
||||||
|
--volume "${PWD}:/minimap2"
|
||||||
|
install: |
|
||||||
|
apt-get update -q -y
|
||||||
|
apt-get install -q -y make ${{ matrix.compiler }} zlib1g-dev file
|
||||||
|
run: |
|
||||||
|
cd /minimap2
|
||||||
|
make CC=${{ matrix.compiler }} arm_neon=1 aarch64=1 -j
|
||||||
|
file minimap2 | grep aarch64
|
||||||
|
|
||||||
|
build-mac-arm64:
|
||||||
|
name: Mac ARM64
|
||||||
|
runs-on: macos-14
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [clang]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout minimap2
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Compile with ${{ matrix.compiler }}
|
||||||
|
run: |
|
||||||
|
make CC=${{ matrix.compiler }} arm_neon=1 aarch64=1 -j
|
||||||
|
file minimap2 | grep arm64
|
||||||
|
|
||||||
Reference in New Issue
Block a user