From 69a40d725814ca21aa1e5f7d5fbc827c7e98af6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 26 Feb 2021 10:28:51 +0800 Subject: [PATCH] Fix golang version --- .github/workflows/debug.yml | 2 +- .github/workflows/release.yml | 2 +- bin/libs/v2ray.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 2abc16484..6a4314647 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -152,7 +152,7 @@ jobs: uses: actions/setup-go@v2 if: steps.cache.outputs.cache-hit != 'true' with: - go-version: ^1.15 + go-version: 1.15 - name: Native Build if: steps.cache.outputs.cache-hit != 'true' run: ./run libs v2ray diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a65eaacf1..ef6318b78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -165,7 +165,7 @@ jobs: uses: actions/setup-go@v2 if: steps.cache.outputs.cache-hit != 'true' with: - go-version: ^1.15 + go-version: 1.15 - name: Native Build if: steps.cache.outputs.cache-hit != 'true' run: ./run libs v2ray diff --git a/bin/libs/v2ray.sh b/bin/libs/v2ray.sh index 5d0e4e870..9617df3eb 100755 --- a/bin/libs/v2ray.sh +++ b/bin/libs/v2ray.sh @@ -8,7 +8,7 @@ export GO111MOUDLE=on export PATH="$PATH:$(go env GOPATH)/bin" cd "$PROJECT/build" -[ -d "v2ray" ] || git clone https://github.com/2dust/AndroidLibV2rayLite v2ray +[ -d "v2ray" ] || git clone https://github.com/2dust/AndroidLibV2rayLite v2ray || exit 1 cd v2ray git reset --hard && git clean -fdx sed -i -e "s|go 1.14|go 1.16|g" go.mod