-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d95107
commit 6333d71
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 test.zip | ||
git commit -m "Add test.zip" | ||
# Push the changes to your repository | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: main # Change this to the branch you want to push to |