mirror of https://github.com/NekoX-Dev/NekoX.git
Fix golang version
This commit is contained in:
parent
cc6d2d278c
commit
69a40d7258
|
@ -152,7 +152,7 @@ jobs:
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
with:
|
with:
|
||||||
go-version: ^1.15
|
go-version: 1.15
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: ./run libs v2ray
|
run: ./run libs v2ray
|
||||||
|
|
|
@ -165,7 +165,7 @@ jobs:
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
with:
|
with:
|
||||||
go-version: ^1.15
|
go-version: 1.15
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: ./run libs v2ray
|
run: ./run libs v2ray
|
||||||
|
|
|
@ -8,7 +8,7 @@ export GO111MOUDLE=on
|
||||||
export PATH="$PATH:$(go env GOPATH)/bin"
|
export PATH="$PATH:$(go env GOPATH)/bin"
|
||||||
|
|
||||||
cd "$PROJECT/build"
|
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
|
cd v2ray
|
||||||
git reset --hard && git clean -fdx
|
git reset --hard && git clean -fdx
|
||||||
sed -i -e "s|go 1.14|go 1.16|g" go.mod
|
sed -i -e "s|go 1.14|go 1.16|g" go.mod
|
||||||
|
|
Loading…
Reference in New Issue