Skip to content

Commit

Permalink
Bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zakcutner committed Aug 28, 2020
1 parent 935d072 commit e4e5446
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
- name: Check version number
run: ./scripts/check-version.sh
- name: Login to registry
uses: actions-rs/cargo@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sliceslice"
version = "0.1.0"
version = "0.2.0"
authors = ["marmeladema <[email protected]>", "Zak Cutner <[email protected]>"]
edition = "2018"
description = "A fast implementation of single-pattern substring search using SIMD acceleration"
Expand Down
11 changes: 11 additions & 0 deletions scripts/check-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -euo pipefail

GIT_TAG="$(git describe --tags --exact-match HEAD)"
CARGO_VERSION="$(cargo metadata --no-deps --format-version=1 | jq -r '(.packages[] | select(.name == "sliceslice").version)')"

if [ "$GIT_TAG" != "v$CARGO_VERSION" ]; then
echo "version mismatch: git tag is $GIT_TAG but cargo version is $CARGO_VERSION"
exit 1
fi

0 comments on commit e4e5446

Please sign in to comment.