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
parent7fd4015f174e4c529612dfeee534fb1f2842ba7d (diff)
Add support for ARMv5 and x86 (#1642)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docker.yml4
-rw-r--r--.github/workflows/release.yml31
2 files changed, 31 insertions, 4 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index b2dc0ca4..6afe8618 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -1,4 +1,4 @@
-name: Release 3X-UI dockerhub
+name: Release 3X-UI for Docker
on:
push:
tags:
@@ -36,6 +36,6 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
- platforms: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6
+ platforms: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6, linux/386, linux/arm/v5
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
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