From 1fea43d03e1fffdf2fcbf11c9d0c47b3cfaaff55 Mon Sep 17 00:00:00 2001 From: Milot Mirdita Date: Wed, 2 Nov 2022 18:22:09 +0900 Subject: [PATCH] Add mac arm64 github action --- .github/workflows/mac-arm64.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/mac-arm64.yml diff --git a/.github/workflows/mac-arm64.yml b/.github/workflows/mac-arm64.yml new file mode 100644 index 000000000..508b708d4 --- /dev/null +++ b/.github/workflows/mac-arm64.yml @@ -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 \ No newline at end of file