diff options
| author | MisakaNo の 小破站 <122191366+Misaka-blog@users.noreply.github.com> | 2024-04-01 12:11:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 12:11:58 +0300 |
| commit | 44b7eb881cb2ff2142f3566913c1e70ee8106556 (patch) | |
| tree | 3a823b42a871050375e8dc20e2c85baa10e71d9e /.github | |
| parent | 9b1146780ce62eaf663ad382436809620d335c41 (diff) | |
Add s390x arch support (#2172)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b74e4346..f74a2202 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ jobs: - armv6 - 386 - armv5 + - s390x runs-on: ubuntu-20.04 steps: - name: Checkout repository @@ -40,6 +41,8 @@ jobs: sudo apt install gcc-i686-linux-gnu elif [ "${{ matrix.platform }}" == "armv5" ]; then sudo apt install gcc-arm-linux-gnueabi + elif [ "${{ matrix.platform }}" == "s390x" ]; then + sudo apt install gcc-s390x-linux-gnu fi - name: Build x-ui @@ -65,6 +68,9 @@ jobs: export GOARCH=arm export GOARM=5 export CC=arm-linux-gnueabi-gcc + elif [ "${{ matrix.platform }}" == "s390x" ]; then + export GOARCH=s390x + export CC=s390x-linux-gnu-gcc fi go build -o xui-release -v main.go @@ -102,6 +108,10 @@ jobs: wget ${Xray_URL}Xray-linux-arm32-v5.zip unzip Xray-linux-arm32-v5.zip rm -f Xray-linux-arm32-v5.zip + elif [ "${{ matrix.platform }}" == "s390x" ]; then + wget ${Xray_URL}Xray-linux-s390x.zip + unzip Xray-linux-s390x.zip + rm -f Xray-linux-s390x.zip fi rm -f geoip.dat geosite.dat wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat |
