mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-08 11:16:18 +00:00
Update test.yml
This commit is contained in:
parent
756417e0aa
commit
0281ac0472
1 changed files with 7 additions and 7 deletions
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [amd64, arm64, arm, armv6l]
|
platform: [amd64, arm64, arm, armv6]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -21,12 +21,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.21'
|
go-version: '1.21'
|
||||||
|
|
||||||
- name: Install dependencies for arm64, arm and armv6l
|
- name: Install dependencies for arm64, arm and armv6
|
||||||
if: matrix.platform == 'arm64' || matrix.platform == 'arm' || matrix.platform == 'armv6l'
|
if: matrix.platform == 'arm64' || matrix.platform == 'arm' || matrix.platform == 'armv6'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt install gcc-aarch64-linux-gnu
|
sudo apt install gcc-aarch64-linux-gnu
|
||||||
if [ "${{ matrix.platform }}" == "arm" ] || [ "${{ matrix.platform }}" == "armv6l" ]; then
|
if [ "${{ matrix.platform }}" == "arm" ] || [ "${{ matrix.platform }}" == "armv6" ]; then
|
||||||
sudo apt install gcc-arm-linux-gnueabihf
|
sudo apt install gcc-arm-linux-gnueabihf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ jobs:
|
||||||
export GOARCH=arm
|
export GOARCH=arm
|
||||||
export GOARM=7
|
export GOARM=7
|
||||||
export CC=arm-linux-gnueabihf-gcc
|
export CC=arm-linux-gnueabihf-gcc
|
||||||
elif [ "${{ matrix.platform }}" == "armv6l" ]; then
|
elif [ "${{ matrix.platform }}" == "armv6" ]; then
|
||||||
export GOARCH=arm
|
export GOARCH=arm
|
||||||
export GOARM=6
|
export GOARM=6
|
||||||
export CC=arm-linux-gnueabihf-gcc
|
export CC=arm-linux-gnueabihf-gcc
|
||||||
|
@ -72,7 +72,7 @@ jobs:
|
||||||
wget ${Xray_URL}Xray-linux-arm32-v7a.zip
|
wget ${Xray_URL}Xray-linux-arm32-v7a.zip
|
||||||
unzip Xray-linux-arm32-v7a.zip
|
unzip Xray-linux-arm32-v7a.zip
|
||||||
rm -f Xray-linux-arm32-v7a.zip
|
rm -f Xray-linux-arm32-v7a.zip
|
||||||
elif [ "${{ matrix.platform }}" == "armv6l" ]; then
|
elif [ "${{ matrix.platform }}" == "armv6" ]; then
|
||||||
wget ${Xray_URL}Xray-linux-arm32-v6.zip
|
wget ${Xray_URL}Xray-linux-arm32-v6.zip
|
||||||
unzip Xray-linux-arm32-v6.zip
|
unzip Xray-linux-arm32-v6.zip
|
||||||
rm -f Xray-linux-arm32-v6.zip
|
rm -f Xray-linux-arm32-v6.zip
|
||||||
|
@ -95,7 +95,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.platform }}" == "arm" ]; then
|
if [ "${{ matrix.platform }}" == "arm" ]; then
|
||||||
tar -zcvf x-ui-linux-arm32-v7.tar.gz x-ui
|
tar -zcvf x-ui-linux-arm32-v7.tar.gz x-ui
|
||||||
elif [ "${{ matrix.platform }}" == "armv6l" ]; then
|
elif [ "${{ matrix.platform }}" == "armv6" ]; then
|
||||||
tar -zcvf x-ui-linux-arm32-v6.tar.gz x-ui
|
tar -zcvf x-ui-linux-arm32-v6.tar.gz x-ui
|
||||||
else
|
else
|
||||||
tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
||||||
|
|
Loading…
Reference in a new issue