-
Notifications
You must be signed in to change notification settings - Fork 104
38 lines (33 loc) · 982 Bytes
/
mac-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build macOS ARM64
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Dependencies
run: |
brew install -f --overwrite cmake libomp rustup
rustup-init --profile minimal -q -y
- 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: ./regression/run_regression.sh ./build/src/foldseek SCRATCH