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>2023-12-19 13:27:04 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-12-19 13:29:26 +0300
commita2bdf23940ffafabbee5329472aea8473af1aec5 (patch)
treee657e0a5366b2f47223326fe30ce719724c2a8cc /.github
parentd08aaa006849e6318aee61e7b4ff828bc4bd3272 (diff)
Update support for new architecture ARM devices and added support for more OS. (#1389)
* Add files via upload * Delete web/translation/translate.vi_VN.toml * Add files via upload * Update translate.vi_VN.toml * Update release.yml * Update install.sh * Update install.sh * Update install.sh * Update install.sh * Update x-ui.sh * Update docker.yml * Update DockerInit.sh * Update install.sh * Update install.sh * Update install.sh * Update .github/workflows/release.yml * Update README.md --------- Co-authored-by: Ho3ein <ho3ein.sanaei@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker.yml2
-rw-r--r--.github/workflows/release.yml17
2 files changed, 14 insertions, 5 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 5c27dd31..5844cca3 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -36,6 +36,6 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
- platforms: linux/amd64, linux/arm64/v8
+ platforms: linux/amd64, linux/arm64/v8, linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c8eb33dd..865efcda 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
- platform: [amd64, arm64]
+ platform: [amd64, arm64, arm]
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
@@ -21,11 +21,14 @@ jobs:
with:
go-version: '1.21'
- - name: Install dependencies for arm64
- if: matrix.platform == 'arm64'
+ - name: Install dependencies for arm64 and arm
+ if: matrix.platform == 'arm64' || matrix.platform == 'arm'
run: |
sudo apt-get update
sudo apt install gcc-aarch64-linux-gnu
+ if [ "${{ matrix.platform }}" == "arm" ]; then
+ sudo apt install gcc-arm-linux-gnueabihf
+ fi
- name: Build x-ui
run: |
@@ -34,6 +37,8 @@ jobs:
export GOARCH=${{ matrix.platform }}
if [ "${{ matrix.platform }}" == "arm64" ]; then
export CC=aarch64-linux-gnu-gcc
+ elif [ "${{ matrix.platform }}" == "arm" ]; then
+ export CC=arm-linux-gnueabihf-gcc
fi
go build -o xui-release -v main.go
@@ -50,10 +55,14 @@ jobs:
wget https://github.com/XTLS/Xray-core/releases/download/v1.8.6/Xray-linux-64.zip
unzip Xray-linux-64.zip
rm -f Xray-linux-64.zip
- else
+ elif [ "${{ matrix.platform }}" == "arm64" ]; then
wget https://github.com/XTLS/Xray-core/releases/download/v1.8.6/Xray-linux-arm64-v8a.zip
unzip Xray-linux-arm64-v8a.zip
rm -f Xray-linux-arm64-v8a.zip
+ else
+ wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-arm32-v7a.zip
+ unzip Xray-linux-arm32-v7a.zip
+ rm -f Xray-linux-arm32-v7a.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