mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-08 11:16:18 +00:00
Update test.yml
This commit is contained in:
parent
c4547bf974
commit
5e7af23136
1 changed files with 5 additions and 10 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -33,19 +33,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
# Define Xray_URL before using it
|
|
||||||
Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.7/"
|
|
||||||
if [ "${{ matrix.platform }}" == "arm64" ]; then
|
if [ "${{ matrix.platform }}" == "arm64" ]; then
|
||||||
export GOARCH=arm64
|
export GOARCH=arm64
|
||||||
export CC=aarch64-linux-gnu-gcc
|
export CC=aarch64-linux-gnu-gcc
|
||||||
elif [ "${{ matrix.platform }}" == "armv7" ]; then
|
elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then
|
||||||
wget ${Xray_URL}Xray-linux-arm32-v7a.zip
|
export GOARCH=arm
|
||||||
unzip Xray-linux-arm32-v7a.zip
|
export GOARM=7
|
||||||
rm -f Xray-linux-arm32-v7a.zip
|
export CC=arm-linux-gnueabihf-gcc
|
||||||
elif [ "${{ matrix.platform }}" == "armv6" ]; then
|
|
||||||
wget ${Xray_URL}Xray-linux-arm32-v6.zip
|
|
||||||
unzip Xray-linux-arm32-v6.zip
|
|
||||||
rm -f Xray-linux-arm32-v6.zip
|
|
||||||
else
|
else
|
||||||
export GOARCH=${{ matrix.platform }}
|
export GOARCH=${{ matrix.platform }}
|
||||||
fi
|
fi
|
||||||
|
@ -60,6 +54,7 @@ jobs:
|
||||||
cd x-ui/bin
|
cd x-ui/bin
|
||||||
|
|
||||||
# Download dependencies
|
# Download dependencies
|
||||||
|
Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.7/"
|
||||||
if [ "${{ matrix.platform }}" == "amd64" ]; then
|
if [ "${{ matrix.platform }}" == "amd64" ]; then
|
||||||
wget ${Xray_URL}Xray-linux-64.zip
|
wget ${Xray_URL}Xray-linux-64.zip
|
||||||
unzip Xray-linux-64.zip
|
unzip Xray-linux-64.zip
|
||||||
|
|
Loading…
Reference in a new issue