Skip to content

Commit a5200e2

Browse files
authored
Modify CIBW_BEFORE_ALL_LINUX for package installation
Updated CIBW_BEFORE_ALL_LINUX to handle package installation for both yum and apk.
1 parent 9e3f8b7 commit a5200e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-wheel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
# Build only cp310 for abi3 wheel (compatible with all Python 3.10+)
6565
CIBW_BUILD: cp310-*
6666
CIBW_TEST_REQUIRES: pytest requests pytest-asyncio pytest-timeout
67-
CIBW_BEFORE_ALL_LINUX: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && yum install -y openssl-devel
67+
CIBW_BEFORE_ALL_LINUX: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env && (yum install -y openssl-devel 2>/dev/null || apk add openssl-dev 2>/dev/null)
6868
CIBW_BEFORE_BUILD: pip install -r requirements.txt && make
6969
CIBW_BUILD_VERBOSITY: 1
7070
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH XLLAMACPP_BUILD_AARCH64=${{ matrix.arch == 'aarch64' && '1' || '' }}"

0 commit comments

Comments
 (0)