Skip to content

Commit 6967a5c

Browse files
committed
before-script-linux with all bells and whistles
1 parent de00b7d commit 6967a5c

File tree

1 file changed

+19
-44
lines changed

1 file changed

+19
-44
lines changed

.github/workflows/maturin.yml

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ jobs:
1717
platform:
1818
- runner: ubuntu-22.04
1919
target: x86_64
20-
# - runner: ubuntu-22.04
21-
# target: x86
22-
# - runner: ubuntu-22.04
23-
# target: aarch64
24-
# - runner: ubuntu-22.04
25-
# target: armv7
26-
# - runner: ubuntu-22.04
27-
# target: s390x
28-
# - runner: ubuntu-22.04
29-
# target: ppc64le
20+
- runner: ubuntu-22.04
21+
target: x86
22+
- runner: ubuntu-22.04
23+
target: aarch64
24+
- runner: ubuntu-22.04
25+
target: armv7
3026
steps:
3127
- uses: actions/checkout@v4
3228
- uses: actions/setup-python@v5
@@ -37,45 +33,26 @@ jobs:
3733
with:
3834
target: ${{ matrix.platform.target }}
3935
args: --release --out dist --find-interpreter
40-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4136
manylinux: 2_24
37+
before-script-linux: |
38+
set -ex
39+
apt update -y && apt-get install -y build-essential perl-modules curl libssl-dev openssl pkg-config libclang-dev liblzma-dev
40+
# curl -L https://cpanmin.us | perl - --sudo App::cpanminus
41+
# cpanm --force Test::More ExtUtils::Manifest YAML IPC::Cmd
42+
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
43+
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
44+
if [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
45+
echo "OpenSSL development files are not installed or pkg-config is not configured correctly."
46+
exit 1
47+
fi
48+
export OPENSSL_DIR="$OPENSSL_LIB_DIR/ssl"
49+
export OPENSSL_NO_VENDOR=1
4250
- name: Upload wheels
4351
uses: actions/upload-artifact@v4
4452
with:
4553
name: wheels-linux-${{ matrix.platform.target }}
4654
path: dist
4755

48-
# musllinux:
49-
# runs-on: ${{ matrix.platform.runner }}
50-
# strategy:
51-
# matrix:
52-
# platform:
53-
# - runner: ubuntu-22.04
54-
# target: x86_64
55-
# - runner: ubuntu-22.04
56-
# target: x86
57-
# - runner: ubuntu-22.04
58-
# target: aarch64
59-
# - runner: ubuntu-22.04
60-
# target: armv7
61-
# steps:
62-
# - uses: actions/checkout@v4
63-
# - uses: actions/setup-python@v5
64-
# with:
65-
# python-version: 3.x
66-
# - name: Build wheels
67-
# uses: PyO3/maturin-action@v1
68-
# with:
69-
# target: ${{ matrix.platform.target }}
70-
# args: --release --out dist --find-interpreter
71-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
72-
# manylinux: musllinux_1_2
73-
# - name: Upload wheels
74-
# uses: actions/upload-artifact@v4
75-
# with:
76-
# name: wheels-musllinux-${{ matrix.platform.target }}
77-
# path: dist
78-
7956
# windows:
8057
# runs-on: ${{ matrix.platform.runner }}
8158
# strategy:
@@ -96,7 +73,6 @@ jobs:
9673
# with:
9774
# target: ${{ matrix.platform.target }}
9875
# args: --release --out dist --find-interpreter
99-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
10076
# - name: Upload wheels
10177
# uses: actions/upload-artifact@v4
10278
# with:
@@ -122,7 +98,6 @@ jobs:
12298
# with:
12399
# target: ${{ matrix.platform.target }}
124100
# args: --release --out dist --find-interpreter
125-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
126101
# - name: Upload wheels
127102
# uses: actions/upload-artifact@v4
128103
# with:

0 commit comments

Comments
 (0)