Skip to content

Commit 1fea43d

Browse files
committed
Add mac arm64 github action
1 parent 314c1f0 commit 1fea43d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/mac-arm64.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build macOS ARM64
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: [self-hosted, macOS, ARM64]
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: true
15+
16+
- name: Build
17+
run: |
18+
mkdir -p build
19+
cd build
20+
LIBOMP=$(brew --prefix libomp)
21+
cmake \
22+
-DCMAKE_BUILD_TYPE=Release \
23+
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP}/include" \
24+
-DOpenMP_C_LIB_NAMES=omp \
25+
-DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP}/include" \
26+
-DOpenMP_CXX_LIB_NAMES=omp \
27+
-DOpenMP_omp_LIBRARY=${LIBOMP}/lib/libomp.a \
28+
..
29+
make -j$(sysctl -n hw.ncpu)
30+
31+
- name: Test
32+
run: ./util/regression/run_regression.sh ./build/src/mmseqs SCRATCH

0 commit comments

Comments
 (0)