Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquydang <81231812+quydang04@users.noreply.github.com>2024-01-20 12:32:35 +0300
committerGitHub <noreply@github.com>2024-01-20 12:32:35 +0300
commit74ba6d7825741fe7965c91e5ccd8ae6d0436fe59 (patch)
tree01d1cb09bb870b2522b3d1aee4d16f805a9f1c17 /.github/workflows/release.yml
parent7fd4015f174e4c529612dfeee534fb1f2842ba7d (diff)
Add support for ARMv5 and x86 (#1642)
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml31
1 files changed, 29 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 91a7e093..62bc6e7c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,6 +15,8 @@ jobs:
- arm64
- armv7
- armv6
+ - 386
+ - armv5
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
@@ -30,8 +32,14 @@ jobs:
sudo apt-get update
if [ "${{ matrix.platform }}" == "arm64" ]; then
sudo apt install gcc-aarch64-linux-gnu
- elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then
+ elif [ "${{ matrix.platform }}" == "armv7" ]; then
+ sudo apt install gcc-arm-linux-gnueabihf
+ elif [ "${{ matrix.platform }}" == "armv6" ]; then
sudo apt install gcc-arm-linux-gnueabihf
+ elif [ "${{ matrix.platform }}" == "386" ]; then
+ sudo apt install gcc-i686-linux-gnu
+ elif [ "${{ matrix.platform }}" == "armv5" ]; then
+ sudo apt install gcc-arm-linux-gnueabi
fi
- name: Build x-ui
@@ -42,10 +50,21 @@ jobs:
if [ "${{ matrix.platform }}" == "arm64" ]; then
export GOARCH=arm64
export CC=aarch64-linux-gnu-gcc
- elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then
+ elif [ "${{ matrix.platform }}" == "armv7" ]; then
export GOARCH=arm
export GOARM=7
export CC=arm-linux-gnueabihf-gcc
+ elif [ "${{ matrix.platform }}" == "armv6" ]; then
+ export GOARCH=arm
+ export GOARM=6
+ export CC=arm-linux-gnueabihf-gcc
+ elif [ "${{ matrix.platform }}" == "386" ]; then
+ export GOARCH=386
+ export CC=i686-linux-gnu-gcc
+ elif [ "${{ matrix.platform }}" == "armv5" ]; then
+ export GOARCH=arm
+ export GOARM=5
+ export CC=arm-linux-gnueabi-gcc
fi
go build -o xui-release -v main.go
@@ -75,6 +94,14 @@ jobs:
wget ${Xray_URL}Xray-linux-arm32-v6.zip
unzip Xray-linux-arm32-v6.zip
rm -f Xray-linux-arm32-v6.zip
+ elif [ "${{ matrix.platform }}" == "386" ]; then
+ wget ${Xray_URL}Xray-linux-32.zip
+ unzip Xray-linux-32.zip
+ rm -f Xray-linux-32.zip
+ elif [ "${{ matrix.platform }}" == "armv5" ]; then
+ wget ${Xray_URL}Xray-linux-arm32-v5.zip
+ unzip Xray-linux-arm32-v5.zip
+ rm -f Xray-linux-arm32-v5.zip
fi
rm -f geoip.dat geosite.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat