Skip to content

Commit 8870809

Browse files
authored
Merge pull request #26 from unum-cloud/main-dev
Sync
2 parents 78d84ee + f976b13 commit 8870809

File tree

10 files changed

+661
-507
lines changed

10 files changed

+661
-507
lines changed

.github/workflows/package.json

-82
This file was deleted.

.github/workflows/release.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ permissions:
1616

1717
jobs:
1818

19-
# versioning:
20-
# name: Semantic Release
21-
# runs-on: ubuntu-latest
22-
# steps:
23-
# - uses: actions/checkout@v3
24-
# with:
25-
# persist-credentials: false
26-
# - uses: actions/setup-node@v3
27-
# - run: cp .github/workflows/package.json . && npm install && npx semantic-release
19+
versioning:
20+
name: Semantic Release
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
persist-credentials: false
26+
- uses: actions/setup-node@v3
27+
- run: npm install --save-dev @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx semantic-release
2828

2929
build_wheels:
3030
name: Build Wheels for ${{ matrix.os }}
3131
runs-on: ${{ matrix.os }}
32-
# needs: versioning
32+
needs: versioning
3333
strategy:
3434
matrix:
3535
os: [ubuntu-20.04, macOS-11]

.github/workflows/update_version.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
echo $1 > VERSION &&
4+
sed -i "s/\"version\": \".*\"/\"version\": \"$1\"/" package.json &&
5+
sed -i "s/version = \".*\"/version = \"$1\"/" Cargo.toml &&
6+
sed -i "s/version = '.*'/version = '$1'/" conanfile.py

.releaserc

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"debug": true,
6+
"ci": true,
7+
"dryRun": false,
8+
"plugins": [
9+
[
10+
"@semantic-release/commit-analyzer",
11+
{
12+
"preset": "eslint",
13+
"releaseRules": [
14+
{
15+
"tag": "Add",
16+
"release": "minor"
17+
},
18+
{
19+
"tag": "Improve",
20+
"release": "patch"
21+
},
22+
{
23+
"tag": "Make",
24+
"release": "patch"
25+
},
26+
{
27+
"tag": "Refactor",
28+
"release": false
29+
}
30+
]
31+
}
32+
],
33+
[
34+
"@semantic-release/release-notes-generator",
35+
{
36+
"preset": "eslint",
37+
"releaseRules": [
38+
{
39+
"tag": "Add",
40+
"release": "minor"
41+
},
42+
{
43+
"tag": "Improve",
44+
"release": "patch"
45+
},
46+
{
47+
"tag": "Make",
48+
"release": "patch"
49+
},
50+
{
51+
"tag": "Refactor",
52+
"release": false
53+
}
54+
]
55+
}
56+
],
57+
"@semantic-release/github",
58+
[
59+
"@semantic-release/exec",
60+
{
61+
"prepareCmd": "bash .github/workflows/update_version.sh '${nextRelease.version}'"
62+
}
63+
],
64+
[
65+
"@semantic-release/git",
66+
{
67+
"assets": [
68+
"VERSION",
69+
"conanfile.py",
70+
"package.json",
71+
"Cargo.toml",
72+
],
73+
"message": "Build: Released ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
74+
}
75+
]
76+
]
77+
}

.vscode/settings.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,25 @@
102102
},
103103
"cSpell.words": [
104104
"astype",
105+
"BLAS",
106+
"downcasted",
107+
"Downcasting",
105108
"dtype",
106109
"equidimensional",
110+
"FAISS",
107111
"hashable",
112+
"HNSW",
108113
"jaccard",
109114
"longlong",
110115
"memmap",
111116
"ndim",
117+
"Numba",
112118
"preprocess",
119+
"Quickstart",
113120
"simsimd",
114-
"usearch"
121+
"SLOC",
122+
"usearch",
123+
"usecases"
115124
],
116125
"java.configuration.updateBuildConfiguration": "interactive"
117126
}

0 commit comments

Comments
 (0)