Skip to content

Commit

Permalink
ci: use loongarch64 as arch name in rpm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson Hon committed Dec 11, 2023
1 parent 445cf43 commit c737b69
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ jobs:
package_arch='armhfp'
elif [ "$GOARCH" == 'arm64' ];then
package_arch='aarch64'
elif [ "$GOARCH" == 'loong64' ];then
package_arch='loongson64'
else
package_arch="$GOARCH"
fi
Expand Down Expand Up @@ -470,7 +472,7 @@ jobs:
run: |
mkdir xray_unzipped
mkdir v2ray_unzipped
for arch in 64 32 arm64-v8a arm32-v7a mips32 mips32le mips64 mips64le riscv64; do
for arch in 64 32 arm64-v8a arm32-v7a mips32 mips32le mips64 mips64le riscv64 loong64; do
wget -q https://github.com/v2fly/v2ray-core/releases/download/$V2RAY_VERSION/v2ray-linux-$arch.zip
unzip -q v2ray-linux-$arch.zip -d v2ray_unzipped/v2ray-linux-$arch
wget -q https://github.com/XTLS/xray-core/releases/download/$XRAY_VERSION/Xray-linux-$arch.zip
Expand All @@ -480,7 +482,7 @@ jobs:
run: |
mkdir v2ray_packages
package_version="$(echo "$V2RAY_VERSION" | sed 's/v//g')" # Remove the leading 'v' in version number
for arch in amd64 i386 arm64 armhf mips mips32le mips64 mips64le riscv64; do
for arch in amd64 i386 arm64 armhf mips mips32le mips64 mips64le riscv64 loong64; do
case $arch in
amd64)
source_dir="v2ray_unzipped/v2ray-linux-64"
Expand Down Expand Up @@ -509,6 +511,9 @@ jobs:
riscv64)
source_dir="v2ray_unzipped/v2ray-linux-riscv64"
;;
loong64)
source_dir="v2ray_unzipped/v2ray-linux-loong64"
;;
esac
echo 'systemctl daemon-reload
if [ "$(systemctl is-active v2ray)" = "active" ]; then
Expand Down Expand Up @@ -536,7 +541,7 @@ jobs:
run: |
mkdir xray_packages
package_version="$(echo "$XRAY_VERSION" | sed 's/v//g')" # Remove the leading 'v' in version number
for arch in amd64 i386 arm64 armhf mips mips32le mips64 mips64le riscv64; do
for arch in amd64 i386 arm64 armhf mips mips32le mips64 mips64le riscv64 loong64; do
case $arch in
amd64)
source_dir="xray_unzipped/xray-linux-64"
Expand Down Expand Up @@ -565,6 +570,9 @@ jobs:
riscv64)
source_dir="xray_unzipped/xray-linux-riscv64"
;;
loong64)
source_dir="xray_unzipped/xray-linux-loong64"
;;
esac
fpm -s dir -t deb -a $arch --version $package_version \
--url 'https://xtls.github.io/' --description 'Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration' \
Expand Down

0 comments on commit c737b69

Please sign in to comment.