You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const res = await fetch('https://api.github.com/repos/simdutf/simdutf/releases/latest');
12
+
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
13
+
const { tag_name } = await res.json();
14
+
console.log(tag_name.replace('v', ''));
15
+
EOF
16
+
)"
17
+
CURRENT_VERSION=$(grep "#define SIMDUTF_VERSION""$DEPS_DIR/simdutf/simdutf.h"| sed -n "s/^.*VERSION \"\(.*\)\"/\1/p")
18
+
19
+
if [ "$NEW_VERSION"="$CURRENT_VERSION" ];then
20
+
echo"Skipped because simdutf is on the latest version."
21
+
exit 0
13
22
fi
14
23
15
24
echo"Making temporary workspace..."
@@ -24,8 +33,8 @@ cleanup () {
24
33
25
34
trap cleanup INT TERM EXIT
26
35
27
-
SIMDUTF_REF="v$SIMDUTF_VERSION"
28
-
SIMDUTF_ZIP="simdutf-$SIMDUTF_VERSION.zip"
36
+
SIMDUTF_REF="v$NEW_VERSION"
37
+
SIMDUTF_ZIP="simdutf-$NEW_VERSION.zip"
29
38
SIMDUTF_LICENSE="LICENSE-MIT"
30
39
31
40
cd"$WORKSPACE"
@@ -48,5 +57,9 @@ echo ""
48
57
echo"Please git add simdutf, commit the new version:"
49
58
echo""
50
59
echo"$ git add -A deps/simdutf"
51
-
echo"$ git commit -m \"deps: update simdutf to $SIMDUTF_VERSION\""
60
+
echo"$ git commit -m \"deps: update simdutf to $NEW_VERSION\""
52
61
echo""
62
+
63
+
# The last line of the script should always print the new version,
0 commit comments