build arm on big mac #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | |
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 |