Add s390x arch build

rust using cross build tool
so it can build out s390x binary from x86 platform

fix: #5808
This commit is contained in:
Yan Song Liu 2024-03-01 15:21:28 +08:00
parent f38bf826a4
commit 44d1c27f4f
2 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,10 @@ jobs:
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
name: starship-aarch64-unknown-linux-musl.tar.gz
- target: s390x-unknown-linux-gnu
os: ubuntu-latest
name: starship-s390x-unknown-linux-gnu.tar.gz
- target: arm-unknown-linux-musleabihf
os: ubuntu-latest

View File

@ -18,7 +18,7 @@ SUPPORTED_TARGETS="x86_64-unknown-linux-gnu x86_64-unknown-linux-musl \
arm-unknown-linux-musleabihf x86_64-apple-darwin \
aarch64-apple-darwin x86_64-pc-windows-msvc \
i686-pc-windows-msvc aarch64-pc-windows-msvc \
x86_64-unknown-freebsd"
x86_64-unknown-freebsd s390x-unknown-linux-gnu"
info() {
printf '%s\n' "${BOLD}${GREY}>${NO_COLOR} $*"
@ -225,6 +225,7 @@ detect_platform() {
# - i386
# - arm
# - arm64
# - s390x
detect_arch() {
arch="$(uname -m | tr '[:upper:]' '[:lower:]')"