Skip to content

Commit

Permalink
Add mac arm64 github action
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 2, 2022
1 parent 314c1f0 commit 1fea43d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/mac-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build macOS ARM64

on:
push:
branches:
- master

jobs:
build:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Build
run: |
mkdir -p build
cd build
LIBOMP=$(brew --prefix libomp)
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP}/include" \
-DOpenMP_C_LIB_NAMES=omp \
-DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP}/include" \
-DOpenMP_CXX_LIB_NAMES=omp \
-DOpenMP_omp_LIBRARY=${LIBOMP}/lib/libomp.a \
..
make -j$(sysctl -n hw.ncpu)
- name: Test
run: ./util/regression/run_regression.sh ./build/src/mmseqs SCRATCH

0 comments on commit 1fea43d

Please sign in to comment.