File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11[package ]
22name = " sliceslice"
3- version = " 0.1 .0"
3+ version = " 0.2 .0"
44authors = [
" marmeladema <[email protected] >" ,
" Zak Cutner <[email protected] >" ]
55edition = " 2018"
66description = " A fast implementation of single-pattern substring search using SIMD acceleration"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments