Skip to content

Commit e4e5446

Browse files
committed
Bump version to 0.2.0
1 parent 935d072 commit e4e5446

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- name: Install stable toolchain
1212
uses: actions-rs/toolchain@v1
13+
- name: Check version number
14+
run: ./scripts/check-version.sh
1315
- name: Login to registry
1416
uses: actions-rs/cargo@v1
1517
env:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sliceslice"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["marmeladema <xademax@gmail.com>", "Zak Cutner <me@zakcutner.uk>"]
55
edition = "2018"
66
description = "A fast implementation of single-pattern substring search using SIMD acceleration"

scripts/check-version.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
GIT_TAG="$(git describe --tags --exact-match HEAD)"
6+
CARGO_VERSION="$(cargo metadata --no-deps --format-version=1 | jq -r '(.packages[] | select(.name == "sliceslice").version)')"
7+
8+
if [ "$GIT_TAG" != "v$CARGO_VERSION" ]; then
9+
echo "version mismatch: git tag is $GIT_TAG but cargo version is $CARGO_VERSION"
10+
exit 1
11+
fi

0 commit comments

Comments
 (0)