From 5e7af231361e8649d15bb7a19d459342daa2b21b Mon Sep 17 00:00:00 2001 From: quydang <81231812+quydang04@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:29:20 +0700 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76f6afd5..a96fee50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,19 +33,13 @@ 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 - elif [ "${{ matrix.platform }}" == "armv7" ]; then - 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 ${Xray_URL}Xray-linux-arm32-v6.zip - unzip Xray-linux-arm32-v6.zip - rm -f Xray-linux-arm32-v6.zip + elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then + export GOARCH=arm + export GOARM=7 + export CC=arm-linux-gnueabihf-gcc else export GOARCH=${{ matrix.platform }} fi @@ -60,6 +54,7 @@ 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