Skip to content

Commit e0dc909

Browse files
Fix CI yaml build
1 parent 344351c commit e0dc909

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

.github/workflows/CI.yml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ jobs:
4141
- uses: actions/setup-python@v5
4242
with:
4343
python-version: 3.x
44+
45+
- name: Install system deps & use system OpenSSL
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y \
49+
build-essential \
50+
pkg-config \
51+
zlib1g-dev \
52+
libssl-dev \
53+
perl
54+
55+
# Tell openssl-sys to use the system-installed OpenSSL
56+
echo "OPENSSL_NO_VENDOR=1" >> $GITHUB_ENV
57+
# if you need static linkage, keep this; otherwise you can omit
58+
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
59+
4460
- name: Configure vendored OpenSSL for armv7
4561
if: matrix.platform.target == 'armv7'
4662
run: |
@@ -51,18 +67,18 @@ jobs:
5167
echo "CC=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
5268
echo "CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
5369
54-
- name: Install perl dependencies for OpenSSL
55-
run: |
56-
57-
# Force openssl-sys to build vendored OpenSSL
58-
echo "OPENSSL_NO_VENDOR=0" >> $GITHUB_ENV
59-
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
60-
61-
sudo apt-get update
62-
sudo apt-get install -y \
63-
perl make cpanminus libssl-dev pkg-config zlib1g-dev
64-
# Use cpanminus to install all needed Perl modules
65-
sudo cpanm IPC::Cmd Locale::Maketext::Simple Text::Template Params::Check
70+
# - name: Install perl dependencies for OpenSSL
71+
# run: |
72+
#
73+
# # Force openssl-sys to build vendored OpenSSL
74+
# echo "OPENSSL_NO_VENDOR=0" >> $GITHUB_ENV
75+
# echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
76+
#
77+
# sudo apt-get update
78+
# sudo apt-get install -y \
79+
# perl make cpanminus libssl-dev pkg-config zlib1g-dev
80+
# # Use cpanminus to install all needed Perl modules
81+
# sudo cpanm IPC::Cmd Locale::Maketext::Simple Text::Template Params::Check
6682

6783
- name: Build wheels
6884
uses: PyO3/maturin-action@v1
@@ -217,7 +233,7 @@ jobs:
217233
run:
218234
working-directory: BinaryOptionsToolsV2
219235

220-
needs: [macos, windows] # [macos, windows, linux, musllinux]
236+
needs: [ macos, windows ] # [macos, windows, linux, musllinux]
221237
steps:
222238
- uses: actions/download-artifact@v3
223239
with:
@@ -232,6 +248,6 @@ jobs:
232248
env:
233249
TWINE_USERNAME: __token__
234250
TWINE_PASSWORD: ${{ env.PYPI_API_TOKEN }}
235-
run:
251+
run:
236252
uv pip install --upgrade twine
237253
twine upload --skip-existing *

0 commit comments

Comments
 (0)