Skip to content

build arm on big mac #8

build arm on big mac

build arm on big mac #8

name: Clone and Upload File
on:
push:
branches:
- test/macos_usearch
jobs:
upload:
# runs-on: macos-12
runs-on: macos-13-xlarge
# needs: versioning
strategy:
# fail-fast: false
matrix:
# arch: [x86_64]
arch: [arm64]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Clone another repository
run: |
git clone https://github.com/unum-cloud/usearch.git usearch
cd usearch
git submodule update --init --recursive
- name: Build library
run: |
cd usearch
cmake -DCMAKE_BUILD_TYPE=Release -DUSEARCH_BUILD_LIB_C=1 -DUSEARCH_BUILD_TEST_CPP=0 -DUSEARCH_BUILD_BENCH_CPP=0 -B ./build_release
cmake --build ./build_release --config Release
ls build_release
zip -r usearch_macOS_${{ matrix.arch }}.zip build_release/libusearch_c.dylib c/usearch.h
cp usearch_macOS_${{ matrix.arch }}.zip ../
# Configure Git to make commits
- name: Configure Git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
# Commit the changes
- name: Commit changes
run: |
git add usearch_macOS_${{ matrix.arch }}.zip
git commit -m "Add usearch_macOS_${{ matrix.arch }}.zip"
# Push the changes to your repository
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: test/macos_usearch