diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1fbce57..76f6afd5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,8 @@ jobs: run: | export CGO_ENABLED=1 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 export GOARCH=arm64 export CC=aarch64-linux-gnu-gcc @@ -58,7 +60,6 @@ jobs: cd x-ui/bin # Download dependencies - Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.7/" if [ "${{ matrix.platform }}" == "amd64" ]; then wget ${Xray_URL}Xray-linux-64.zip unzip Xray-linux-64.zip @@ -68,11 +69,11 @@ jobs: unzip Xray-linux-arm64-v8a.zip rm -f Xray-linux-arm64-v8a.zip elif [ "${{ matrix.platform }}" == "armv7" ]; then - wget https://github.com/XTLS/Xray-core/releases/download/v1.8.7/Xray-linux-arm32-v7a.zip + wget ${Xray_URL}Xray-linux-arm32-v7a.zip unzip Xray-linux-arm32-v7a.zip rm -f Xray-linux-arm32-v7a.zip elif [ "${{ matrix.platform }}" == "armv6" ]; then - wget https://github.com/XTLS/Xray-core/releases/download/v1.8.7/Xray-linux-arm32-v6.zip + wget ${Xray_URL}Xray-linux-arm32-v6.zip unzip Xray-linux-arm32-v6.zip rm -f Xray-linux-arm32-v6.zip else