Skip to content

Commit a602238

Browse files
heiherrami3l
authored andcommitted
CI: Disable openssl for loongarch64-unknown-linux-gnu
1 parent a0b692c commit a602238

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

ci/run.bash

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@ rustc -vV
88
cargo -vV
99

1010

11-
FEATURES=('--no-default-features' '--features' 'curl-backend,reqwest-backend,reqwest-default-tls')
11+
FEATURES=('--no-default-features' '--features' 'reqwest-backend')
1212
case "$(uname -s)" in
1313
*NT* ) ;; # Windows NT
14-
* ) FEATURES+=('--features' 'vendored-openssl') ;;
14+
* )
15+
case "$TARGET" in
16+
loongarch* ) ;;
17+
*) FEATURES+=('--features' 'vendored-openssl') ;;
18+
esac
19+
;;
20+
esac
21+
22+
case "$TARGET" in
23+
# these platforms aren't supported by openssl:
24+
loongarch* ) ;;
25+
# default case, build with openssl enabled
26+
* ) FEATURES+=('--features' 'curl-backend,reqwest-default-tls') ;;
1527
esac
1628

1729
case "$TARGET" in
@@ -20,7 +32,6 @@ case "$TARGET" in
2032
mips* ) ;;
2133
riscv* ) ;;
2234
s390x* ) ;;
23-
loongarch* ) ;;
2435
aarch64-pc-windows-msvc ) ;;
2536
# default case, build with rustls enabled
2637
* ) FEATURES+=('--features' 'reqwest-rustls-tls') ;;
@@ -40,14 +51,21 @@ target_cargo() {
4051
target_cargo build
4152

4253
download_pkg_test() {
43-
features=('--no-default-features' '--features' 'curl-backend,reqwest-backend,reqwest-default-tls')
54+
features=('--no-default-features' '--features' 'reqwest-backend')
55+
56+
case "$TARGET" in
57+
# these platforms aren't supported by openssl:
58+
loongarch* ) ;;
59+
# default case, build with openssl enabled
60+
* ) features+=('--features' 'curl-backend,reqwest-default-tls') ;;
61+
esac
62+
4463
case "$TARGET" in
4564
# these platforms aren't supported by ring:
4665
powerpc* ) ;;
4766
mips* ) ;;
4867
riscv* ) ;;
4968
s390x* ) ;;
50-
loongarch* ) ;;
5169
aarch64-pc-windows-msvc ) ;;
5270
# default case, build with rustls enabled
5371
* ) features+=('--features' 'reqwest-rustls-tls') ;;

0 commit comments

Comments
 (0)