File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 46
46
CIBW_ARCHS_LINUX : x86_64 i686
47
47
CIBW_ARCHS_WINDOWS : AMD64 x86
48
48
CIBW_ARCHS_MACOS : x86_64 arm64
49
- CIBW_BEFORE_ALL_LINUX : curl -sSf https://sh.rustup.rs | sh -s -- -y
50
- CIBW_BEFORE_ALL_MACOS : curl -sSf https://sh.rustup.rs | sh -s -- -y
49
+ CIBW_BEFORE_ALL_LINUX : |
50
+ curl -sSf https://sh.rustup.rs | sh -s -- -y
51
+ # From https://github.com/Intreecom/scyllapy/blob/05fdab32dd7468c26533de5fdfe9627fa3e38445/.github/workflows/release.yaml#L38
52
+ if command -v yum &> /dev/null; then
53
+ yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
54
+
55
+ # If we're running on i686 we need to symlink libatomic
56
+ # in order to build openssl with -latomic flag.
57
+ if [[ ! -d "/usr/lib64" ]]; then
58
+ ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
59
+ fi
60
+ elif command -v apt &> /dev/null; then
61
+ apt update -y && apt-get install -y libssl-dev openssl pkg-config
62
+ fi
63
+ CIBW_BEFORE_ALL_MACOS : |
64
+ curl -sSf https://sh.rustup.rs | sh -s -- -y
65
+ rustup target add aarch64-apple-darwin x86_64-apple-darwin
51
66
CIBW_BEFORE_ALL_WINDOWS : rustup target add i686-pc-windows-msvc
52
67
CIBW_BEFORE_BUILD : pip install setuptools-rust
53
68
CIBW_ENVIRONMENT : PATH="$HOME/.cargo/bin:$PATH"
You can’t perform that action at this time.
0 commit comments