Skip to content

Commit 7dbb933

Browse files
committed
Inline OpenSSL install command for cross
1 parent 4c21287 commit 7dbb933

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Cross.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[target.aarch64-unknown-linux-gnu]
2-
pre-build = ["sh /project/scripts/cross-install-openssl.sh"]
2+
pre-build = ["sh -c 'if command -v apt-get >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates; elif command -v apk >/dev/null 2>&1; then apk add --no-cache pkgconf openssl-dev ca-certificates; elif command -v dnf >/dev/null 2>&1; then dnf install -y openssl-devel ca-certificates && (dnf install -y pkgconfig || dnf install -y pkgconf-pkg-config); elif command -v yum >/dev/null 2>&1; then yum install -y openssl-devel ca-certificates && (yum install -y pkgconfig || yum install -y pkgconf-pkg-config); else echo \"Unable to install OpenSSL deps\" >&2; exit 1; fi'"]
33

44
[target.aarch64-unknown-linux-musl]
5-
pre-build = ["sh /project/scripts/cross-install-openssl.sh"]
5+
pre-build = ["sh -c 'if command -v apt-get >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates; elif command -v apk >/dev/null 2>&1; then apk add --no-cache pkgconf openssl-dev ca-certificates; elif command -v dnf >/dev/null 2>&1; then dnf install -y openssl-devel ca-certificates && (dnf install -y pkgconfig || dnf install -y pkgconf-pkg-config); elif command -v yum >/dev/null 2>&1; then yum install -y openssl-devel ca-certificates && (yum install -y pkgconfig || yum install -y pkgconf-pkg-config); else echo \"Unable to install OpenSSL deps\" >&2; exit 1; fi'"]
66

77
[target.x86_64-unknown-linux-gnu]
8-
pre-build = ["sh /project/scripts/cross-install-openssl.sh"]
8+
pre-build = ["sh -c 'if command -v apt-get >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates; elif command -v apk >/dev/null 2>&1; then apk add --no-cache pkgconf openssl-dev ca-certificates; elif command -v dnf >/dev/null 2>&1; then dnf install -y openssl-devel ca-certificates && (dnf install -y pkgconfig || dnf install -y pkgconf-pkg-config); elif command -v yum >/dev/null 2>&1; then yum install -y openssl-devel ca-certificates && (yum install -y pkgconfig || yum install -y pkgconf-pkg-config); else echo \"Unable to install OpenSSL deps\" >&2; exit 1; fi'"]
99

1010
[target.x86_64-unknown-linux-musl]
11-
pre-build = ["sh /project/scripts/cross-install-openssl.sh"]
11+
pre-build = ["sh -c 'if command -v apt-get >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates; elif command -v apk >/dev/null 2>&1; then apk add --no-cache pkgconf openssl-dev ca-certificates; elif command -v dnf >/dev/null 2>&1; then dnf install -y openssl-devel ca-certificates && (dnf install -y pkgconfig || dnf install -y pkgconf-pkg-config); elif command -v yum >/dev/null 2>&1; then yum install -y openssl-devel ca-certificates && (yum install -y pkgconfig || yum install -y pkgconf-pkg-config); else echo \"Unable to install OpenSSL deps\" >&2; exit 1; fi'"]

0 commit comments

Comments
 (0)