mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-03 16:56:18 +00:00
Update armv7.yml
This commit is contained in:
parent
1d89daf563
commit
972f40a9fc
1 changed files with 35 additions and 25 deletions
60
.github/workflows/armv7.yml
vendored
60
.github/workflows/armv7.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [amd64, arm64, armv7] # Thêm armv7 vào danh sách
|
platform: [amd64, arm64, arm] # Thay 'armv7' bằng 'arm'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -27,8 +27,8 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt install gcc-aarch64-linux-gnu
|
sudo apt install gcc-aarch64-linux-gnu
|
||||||
|
|
||||||
- name: Install dependencies for armv7 # Thêm bước cài đặt cho armv7
|
- name: Install dependencies for arm # Thay 'armv7' bằng 'arm'
|
||||||
if: matrix.platform == 'armv7'
|
if: matrix.platform == 'arm'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt install gcc-arm-linux-gnueabihf
|
sudo apt install gcc-arm-linux-gnueabihf
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
export GOARCH=${{ matrix.platform }}
|
export GOARCH=${{ matrix.platform }}
|
||||||
if [ "${{ matrix.platform }}" == "arm64" ]; then
|
if [ "${{ matrix.platform }}" == "arm64" ]; then
|
||||||
export CC=aarch64-linux-gnu-gcc
|
export CC=aarch64-linux-gnu-gcc
|
||||||
elif [ "${{ matrix.platform }}" == "armv7" ]; then # Thêm điều kiện cho armv7
|
elif [ "${{ matrix.platform }}" == "arm" ]; then # Thay 'armv7' bằng 'arm'
|
||||||
export CC=arm-linux-gnueabihf-gcc
|
export CC=arm-linux-gnueabihf-gcc
|
||||||
fi
|
fi
|
||||||
go build -o xui-release -v main.go
|
go build -o xui-release -v main.go
|
||||||
|
@ -71,28 +71,38 @@ jobs:
|
||||||
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-arm64-v8a.zip
|
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-arm64-v8a.zip
|
||||||
unzip Xray-linux-arm64-v8a.zip
|
unzip Xray-linux-arm64-v8a.zip
|
||||||
rm -f Xray-linux-arm64-v8a.zip
|
rm -f Xray-linux-arm64-v8a.zip
|
||||||
elif [ "${{ matrix.platform }}" == "armv7" ]; then # Thêm điều kiện cho armv7
|
elif [ "${{ matrix.platform }}" == "arm" ]; then # Thay 'armv7' bằng 'arm'
|
||||||
# Giữ liên kết tải về cho armv7 nguyên thủy
|
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-32.zip # Giữ liên kết tải về cho arm nguyên thủy
|
||||||
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-32.zip
|
unzip Xray-linux-32.zip
|
||||||
unzip Xray-linux-32.zip
|
rm -f Xray-linux-32.zip
|
||||||
rm -f Xray-linux-32.zip
|
|
||||||
fi
|
fi
|
||||||
rm -f geoip.dat geosite.dat iran.dat
|
|
||||||
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
|
rm -f geoip.dat geosite.dat iran.dat
|
||||||
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
|
|
||||||
wget https://github.com/MasterKia/iran-hosted-domains/releases/latest/download/iran.dat
|
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
|
||||||
mv xray xray-linux-${{ matrix.platform }}
|
|
||||||
|
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
|
||||||
|
|
||||||
|
wget https://github.com/MasterKia/iran-hosted-domains/releases/latest/download/iran.dat
|
||||||
|
|
||||||
|
mv xray xray-linux-${{ matrix.platform }}
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
run: tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: svenstaro/upload-release-action@2.7.0
|
uses: svenstaro/upload-release-action@2.7.0
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: ${{ github.ref }}
|
|
||||||
file: x-ui-linux-${{ matrix.platform }}.tar.gz
|
tag: ${{ github.ref }}
|
||||||
asset_name: x-ui-linux-${{ matrix.platform }}.tar.gz
|
|
||||||
prerelease: true
|
file: x-ui-linux-${{ matrix.platform }}.tar.gz
|
||||||
overwrite: true
|
|
||||||
|
asset_name: x-ui-linux-${{ matrix.platform }}.tar.gz
|
||||||
|
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
|
overwrite: true
|
||||||
|
|
Loading…
Reference in a new issue