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 10
10
- uses : actions/checkout@v2
11
11
- name : Install stable toolchain
12
12
uses : actions-rs/toolchain@v1
13
+ - name : Check version number
14
+ run : ./scripts/check-version.sh
13
15
- name : Login to registry
14
16
uses : actions-rs/cargo@v1
15
17
env :
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sliceslice"
3
- version = " 0.1 .0"
3
+ version = " 0.2 .0"
4
4
authors = [" marmeladema <xademax@gmail.com>" , " Zak Cutner <me@zakcutner.uk>" ]
5
5
edition = " 2018"
6
6
description = " 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