File tree Expand file tree Collapse file tree 7 files changed +17
-12
lines changed Expand file tree Collapse file tree 7 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 88 build-libs-android :
99
1010 name : Build libs (Android)
11- runs-on : self-hosted
11+ runs-on : ubuntu-22.04
1212
1313 steps :
1414 - name : Checkout repository
1515 uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ fetch-tags : true
1619
1720 - name : 🐼 Setup go1.22+
1821 uses : actions/setup-go@v5
2629 ./contrib/mobile/build -a
2730
2831 - name : Get version
32+ id : get_version
2933 run : |
30- PKGVERSION=$(sh -c './contrib/semver/version.sh --bare') && echo $PKGVERSION
34+ PKGVERSION=$(sh -c './contrib/semver/version.sh --bare')
35+ echo "PKGVERSION=$PKGVERSION" >> $GITHUB_ENV
3136
3237 - name : Upload .aar files
3338 uses : actions/upload-artifact@v4
5055 gh_pat : ${{ secrets.MAVEN_PAT }}
5156 artifact_id : mesh
5257 group_id : org.rivchain
53- version : 0.4.7.8
58+ version : ${{ env.PKGVERSION }}
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33# Get the last tag
4- TAG=$( git describe --abbrev=0 --tags --match=" v[0-9]*\.[0-9]*\.[0-9]*" 2> /dev/null)
4+ TAG=$( git describe --abbrev=0 --tags --match=" v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* " 2> /dev/null)
55
66# Did getting the tag succeed?
77if [ $? != 0 ] || [ -z " $TAG " ]; then
@@ -17,6 +17,6 @@ if [ $? != 0 ] || [ -z "$BRANCH" ]; then
1717 BRANCH=" master"
1818fi
1919
20- STAG=$( echo $TAG | sed ' s/v//' | sed ' s/[^0123456789.].//' )
20+ STAG=$( echo $TAG | sed ' s/^ v//' | sed ' s/[^0123456789.].//' )
2121
2222printf ' %s' " $STAG "
Original file line number Diff line number Diff line change 33case " $* " in
44 * --bare* )
55 # Remove the "v" prefix
6- git describe --tags --match=" v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7 | cut -c 2-
6+ git describe --abbrev=0 -- tags --match=" v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* " | sed ' s/^v// '
77 ;;
88 * )
9- git describe --tags --match=" v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7
9+ git describe --abbrev=0 -- tags --match=" v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* "
1010 ;;
1111esac
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ require gerace.dev/zipfs v0.2.0
2424
2525require (
2626 github.com/slonm/tableprinter v0.0.0-20230107100804-643098716018
27+ github.com/vikulin/anet v0.0.6-0.20240829153812-99b8955b2cff
2728 github.com/vorot93/golang-signals v0.0.0-20170221070717-d9e83421ce45
28- github.com/wlynxg/anet v0.0.4
2929 golang.org/x/exp v0.0.0-20221217163422-3c43f8badb15
3030 golang.zx2c4.com/wintun v0.0.0-20211104114900-415007cec224
3131)
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
6868github.com/stretchr/testify v1.5.1 /go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA =
6969github.com/stretchr/testify v1.7.0 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
7070github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk =
71+ github.com/vikulin/anet v0.0.6-0.20240829153812-99b8955b2cff h1:iifW98BSWU92RJmWRcnruOihGZphu1YYBlWA0zLG7zs =
72+ github.com/vikulin/anet v0.0.6-0.20240829153812-99b8955b2cff /go.mod h1:4hyB1C384gHwcoCRaXPrCy90R0JK1AlK/a0kH+BrPyQ =
7173github.com/vikulin/sctp v0.0.0-20221009200520-ae0f2830e422 h1:KJn6ovcNlavPTgdK2uKJoonWPP3GTb8x4FyYPIrwpZw =
7274github.com/vikulin/sctp v0.0.0-20221009200520-ae0f2830e422 /go.mod h1:wbWp47D/qXkQrDuO8qSeUXdLN9qXNZzIgLGDQIoJlJU =
7375github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0 =
@@ -77,8 +79,6 @@ github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f h1:p4VB7kIXpOQvV
7779github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f /go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0 =
7880github.com/vorot93/golang-signals v0.0.0-20170221070717-d9e83421ce45 h1:hB/hkjwf3BQnZE6Wk3SBwMJz0NqnGdwXoNzHVSYb0N0 =
7981github.com/vorot93/golang-signals v0.0.0-20170221070717-d9e83421ce45 /go.mod h1:dfjQkJsG5auteUbnfLIcU72Y/z8tj7DuW9fik8f2Zn0 =
80- github.com/wlynxg/anet v0.0.4 h1:0de1OFQxnNqAu+x2FAKKCVIrnfGKQbs7FQz++tB0+Uw =
81- github.com/wlynxg/anet v0.0.4 /go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA =
8282github.com/yuin/goldmark v1.3.5 /go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k =
8383go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw =
8484go.uber.org/atomic v1.7.0 /go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc =
Original file line number Diff line number Diff line change 88 "strings"
99 "time"
1010
11- "github.com/wlynxg /anet"
11+ "github.com/vikulin /anet"
1212
1313 "github.com/Arceliar/phony"
1414)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212 "strconv"
1313 "time"
1414
15- "github.com/wlynxg /anet"
15+ "github.com/vikulin /anet"
1616
1717 "github.com/Arceliar/phony"
1818 "github.com/gologme/log"
You can’t perform that action at this time.
0 commit comments