Skip to content

Commit 3d9605a

Browse files
committed
Merge branch 'main-dev' of https://github.com/ashvardanian/StringZilla into main-dev
2 parents 3dd0325 + 510c941 commit 3d9605a

File tree

7 files changed

+59
-30
lines changed

7 files changed

+59
-30
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@ permissions:
1717

1818
jobs:
1919

20-
versioning:
21-
name: Semantic Release
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@v3
25-
with:
26-
persist-credentials: false
27-
- uses: actions/setup-node@v3
28-
- run: npm install --save-dev @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx semantic-release
29-
20+
# How hard can it be?!
21+
# Let's just upgrade verions manually with `.github/workflows/update_version.sh`.
22+
# versioning:
23+
# name: Semantic Release
24+
# runs-on: ubuntu-22.04
25+
# steps:
26+
# - uses: actions/checkout@v3
27+
# with:
28+
# persist-credentials: false
29+
# - name: Set up Node.js
30+
# uses: actions/setup-node@v4
31+
# with:
32+
# node-version: 20
33+
# - run: npm install --ignore-scripts --save-dev --prefix ./package-ci @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx --prefix ./package-ci semantic-release
3034

3135
rebase:
3236
name: Rebase Dev. Branch
33-
needs: versioning
3437
runs-on: ubuntu-latest
3538
steps:
3639
- name: Checkout the latest code
@@ -55,7 +58,6 @@ jobs:
5558
build_wheels:
5659
name: Build Python
5760
runs-on: ${{ matrix.os }}
58-
needs: versioning
5961
strategy:
6062
matrix:
6163
os: [ubuntu-20.04, macOS-11, windows-2022]
@@ -110,21 +112,38 @@ jobs:
110112
verbose: true
111113
print-hash: true
112114

113-
publish_javascript:
114-
name: Publish JavaScript
115-
needs: versioning
116-
runs-on: ubuntu-latest
115+
publish_rust:
116+
name: Publish Rust
117+
runs-on: ubuntu-22.04
117118
steps:
118119
- uses: actions/checkout@v3
119120
with:
120-
ref: 'main'
121+
ref: "main"
121122
- run: git submodule update --init --recursive
122-
- uses: actions/setup-node@v3
123+
- uses: actions-rs/toolchain@v1
123124
with:
124-
node-version: 18
125-
- run: npm install
126-
- run: npm ci
127-
- run: npm test
128-
- uses: JS-DevTools/npm-publish@v2
125+
toolchain: stable
126+
override: true
127+
- uses: katyo/publish-crates@v2
129128
with:
130-
token: ${{ secrets.NPM_TOKEN }}
129+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
130+
131+
# Let's not publish the JavaScript package for now
132+
# publish_javascript:
133+
# name: Publish JavaScript
134+
# needs: versioning
135+
# runs-on: ubuntu-latest
136+
# steps:
137+
# - uses: actions/checkout@v3
138+
# with:
139+
# ref: 'main'
140+
# - run: git submodule update --init --recursive
141+
# - uses: actions/setup-node@v3
142+
# with:
143+
# node-version: 18
144+
# - run: npm install
145+
# - run: npm ci
146+
# - run: npm test
147+
# - uses: JS-DevTools/npm-publish@v2
148+
# with:
149+
# token: ${{ secrets.NPM_TOKEN }}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.1)
22
project(
33
stringzilla
4-
VERSION 2.0.4
4+
VERSION 3.0.0
55
LANGUAGES C CXX
66
DESCRIPTION "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances"
77
HOMEPAGE_URL "https://github.com/ashvardanian/stringzilla")

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stringzilla"
3-
version = "2.0.4"
3+
version = "3.0.0"
44
authors = ["Ash Vardanian <[email protected]>"]
55
description = "Faster SIMD-accelerated string search, sorting, fingerprints, and edit distances"
66
edition = "2021"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.4
1+
3.0.0

include/stringzilla/stringzilla.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#ifndef STRINGZILLA_H_
2424
#define STRINGZILLA_H_
2525

26-
#define STRINGZILLA_VERSION_MAJOR 2
26+
#define STRINGZILLA_VERSION_MAJOR 3
2727
#define STRINGZILLA_VERSION_MINOR 0
28-
#define STRINGZILLA_VERSION_PATCH 4
28+
#define STRINGZILLA_VERSION_PATCH 0
2929

3030
/**
3131
* @brief When set to 1, the library will include the following LibC headers: <stddef.h> and <stdint.h>.

package-ci.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "stringzilla-ci",
3+
"version": "1.0.0",
4+
"devDependencies": {
5+
"@semantic-release/exec": "^6.0.3",
6+
"@semantic-release/git": "^10.0.1",
7+
"conventional-changelog-eslint": "^3.0.9",
8+
"semantic-release": "^21.1.2"
9+
}
10+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stringzilla",
3-
"version": "2.0.4",
3+
"version": "3.0.0",
44
"description": "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances",
55
"author": "Ash Vardanian",
66
"license": "Apache 2.0",

0 commit comments

Comments
 (0)