mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
CI: Default build artifact for riscv64+musl on CICD.yml (#10029)
Co-authored by: nijincheng@iscas.ac.cn; Signed-off-by: ffgan <sudoemt@gmail.com>
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
linker = "x86_64-unknown-redox-gcc"
|
linker = "x86_64-unknown-redox-gcc"
|
||||||
[target.aarch64-unknown-linux-gnu]
|
[target.aarch64-unknown-linux-gnu]
|
||||||
linker = "aarch64-linux-gnu-gcc"
|
linker = "aarch64-linux-gnu-gcc"
|
||||||
|
[target.riscv64gc-unknown-linux-musl]
|
||||||
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml
|
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml
|
||||||
|
|||||||
@@ -576,6 +576,7 @@ jobs:
|
|||||||
- { os: ubuntu-latest , target: arm-unknown-linux-gnueabihf , features: feat_os_unix_gnueabihf , use-cross: use-cross , skip-tests: true }
|
- { os: ubuntu-latest , target: arm-unknown-linux-gnueabihf , features: feat_os_unix_gnueabihf , use-cross: use-cross , skip-tests: true }
|
||||||
- { os: ubuntu-24.04-arm , target: aarch64-unknown-linux-gnu , features: feat_os_unix_gnueabihf }
|
- { os: ubuntu-24.04-arm , target: aarch64-unknown-linux-gnu , features: feat_os_unix_gnueabihf }
|
||||||
- { os: ubuntu-latest , target: aarch64-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross , skip-tests: true }
|
- { os: ubuntu-latest , target: aarch64-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross , skip-tests: true }
|
||||||
|
- { os: ubuntu-latest , target: riscv64gc-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross , skip-tests: true }
|
||||||
# - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , features: feat_selinux , use-cross: use-cross }
|
# - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , features: feat_selinux , use-cross: use-cross }
|
||||||
- { os: ubuntu-latest , target: i686-unknown-linux-gnu , features: "feat_os_unix,test_risky_names", use-cross: use-cross }
|
- { os: ubuntu-latest , target: i686-unknown-linux-gnu , features: "feat_os_unix,test_risky_names", use-cross: use-cross }
|
||||||
- { os: ubuntu-latest , target: i686-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross }
|
- { os: ubuntu-latest , target: i686-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross }
|
||||||
@@ -636,6 +637,7 @@ jobs:
|
|||||||
unset TARGET_ARCH
|
unset TARGET_ARCH
|
||||||
case '${{ matrix.job.target }}' in
|
case '${{ matrix.job.target }}' in
|
||||||
aarch64-*) TARGET_ARCH=arm64 ;;
|
aarch64-*) TARGET_ARCH=arm64 ;;
|
||||||
|
riscv64gc-*) TARGET_ARCH=riscv64 ;;
|
||||||
arm-*-*hf) TARGET_ARCH=armhf ;;
|
arm-*-*hf) TARGET_ARCH=armhf ;;
|
||||||
i686-*) TARGET_ARCH=i686 ;;
|
i686-*) TARGET_ARCH=i686 ;;
|
||||||
x86_64-*) TARGET_ARCH=x86_64 ;;
|
x86_64-*) TARGET_ARCH=x86_64 ;;
|
||||||
@@ -700,6 +702,7 @@ jobs:
|
|||||||
STRIP="strip"
|
STRIP="strip"
|
||||||
case ${{ matrix.job.target }} in
|
case ${{ matrix.job.target }} in
|
||||||
aarch64-*-linux-*) STRIP="aarch64-linux-gnu-strip" ;;
|
aarch64-*-linux-*) STRIP="aarch64-linux-gnu-strip" ;;
|
||||||
|
riscv64gc-*-linux-*) STRIP="riscv64-linux-gnu-strip" ;;
|
||||||
arm-*-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;;
|
arm-*-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;;
|
||||||
*-pc-windows-msvc) STRIP="" ;;
|
*-pc-windows-msvc) STRIP="" ;;
|
||||||
esac;
|
esac;
|
||||||
@@ -726,6 +729,10 @@ jobs:
|
|||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install gcc-aarch64-linux-gnu
|
sudo apt-get -y install gcc-aarch64-linux-gnu
|
||||||
;;
|
;;
|
||||||
|
riscv64gc-unknown-linux-*)
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install gcc-riscv64-linux-gnu
|
||||||
|
;;
|
||||||
*-redox*)
|
*-redox*)
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install fuse3 libfuse-dev
|
sudo apt-get -y install fuse3 libfuse-dev
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ pre-build = [
|
|||||||
]
|
]
|
||||||
[build.env]
|
[build.env]
|
||||||
passthrough = ["CI", "RUST_BACKTRACE", "CARGO_TERM_COLOR"]
|
passthrough = ["CI", "RUST_BACKTRACE", "CARGO_TERM_COLOR"]
|
||||||
|
|
||||||
|
[target.riscv64gc-unknown-linux-musl]
|
||||||
|
image = "ghcr.io/cross-rs/riscv64gc-unknown-linux-musl:main"
|
||||||
|
|||||||
Reference in New Issue
Block a user