diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c540c0f..d2c25278 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,11 +34,15 @@ jobs: run: | export CGO_ENABLED=1 export GOOS=linux - export GOARCH=${{ matrix.platform }} if [ "${{ matrix.platform }}" == "arm64" ]; then + export GOARCH=arm64 export CC=aarch64-linux-gnu-gcc elif [ "${{ matrix.platform }}" == "arm" ] || [ "${{ matrix.platform }}" == "armv6l" ]; then + export GOARCH=arm + export GOARM=6 export CC=arm-linux-gnueabihf-gcc + else + export GOARCH=${{ matrix.platform }} fi go build -o xui-release -v main.go @@ -60,14 +64,14 @@ jobs: wget ${Xray_URL}Xray-linux-arm64-v8a.zip unzip Xray-linux-arm64-v8a.zip rm -f Xray-linux-arm64-v8a.zip - elif [ "${{ matrix.platform }}" == "arm" ]; then + elif [ "${{ matrix.platform }}" == "arm" ] || [ "${{ matrix.platform }}" == "armv6l" ]; then wget ${Xray_URL}Xray-linux-arm32-v7a.zip unzip Xray-linux-arm32-v7a.zip rm -f Xray-linux-arm32-v7a.zip else - wget ${Xray_URL}Xray-linux-arm32-v6.zip - unzip Xray-linux-arm32-v6.zip - rm -f Xray-linux-arm32-v6.zip + wget ${Xray_URL}Xray-linux-${{ matrix.platform }}.zip + unzip Xray-linux-${{ matrix.platform }}.zip + rm -f Xray-linux-${{ matrix.platform }}.zip fi rm -f geoip.dat geosite.dat geoip_IR.dat geosite_IR.dat geoip_VN.dat geosite_VN.dat wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat