-
Notifications
You must be signed in to change notification settings - Fork 83
48 lines (40 loc) · 1.32 KB
/
build_usearch_mac.yaml
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
39
40
41
42
43
44
45
46
47
48
name: Clone and Upload File
on:
push:
branches:
- test/macos_usearch
jobs:
upload:
runs-on: ubuntu-latest
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_arm64.zip build_release/libusearch_c.dylib c/usearch.h
cp usearch_macOS_arm64.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_arm64.zip
git commit -m "Add usearch_macOS_arm64.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