Skip to content

Commit

Permalink
refactor(py): reexport TermMatcher at toplevel (#13)
Browse files Browse the repository at this point in the history
* fix(py): reexport TermMatcher at toplevel

* chore: bump to v0.2.0

* ci(deps): install libssl-dev on linux

* ci(deps): install libssl-dev+pkg-config on linux

* ci(deps): update apt repos

* ci(deps): install deps in maturin container

* ci(deps): drop incorrect libssl install

* chore(deps): use vendored tls feature via reqwest

* ci: pin manylinux version

* ci: restore manylinux auto version

* chore(deps): reqwest native-tls -> rustls

* ci: manually specify openssl dir

* ci: explicit vendored openssl import

* ci: temporarily disable linux binary dist

* ci: before-script openssl install

* ci: syntax

* ci: update perl for openssl build deps

* ci: debug

* ci: disable uncommon linux archs

* ci: add missing perl-ipc-cmd module

* ci: force PERL5LIB

* ci: fix PERL5LIB

* ci: multiple paths in perl5lib

* ci: PERL5LIB

* ci: explicitely install perl-version

* ci: rollback openssl

* ci: native openssl

* ci: re-add lock files + fix build

* ci: downgrade openssl-src in lockfile
  • Loading branch information
cmdoret authored Sep 20, 2024
1 parent e46ab14 commit 6272a19
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 3,334 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/maturin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,45 @@ jobs:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
#- runner: ubuntu-latest
# target: x86
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
#- runner: ubuntu-latest
# target: s390x
#- runner: ubuntu-latest
# target: ppc64le
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: "3.11"
- name: Fix openssl regression
run: cargo update openssl-src --precise 300.3.1+3.3.1
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --manifest-path pyfuzon/Cargo.toml
sccache: 'true'
manylinux: auto
#sccache: 'true'
args: --release --out dist --manifest-path pyfuzon/Cargo.toml
before-script-linux: |
# Source: https://github.com/sfackler/rust-openssl/issues/2036#issuecomment-1724324145
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
fi
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -72,6 +89,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Instal OpenSSL
run: sudo apt-get update && sudo apt-get install libssl-dev openssl
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -130,7 +149,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, musllinux, macos, sdist]
needs: [musllinux, macos, sdist]
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
Expand Down
91 changes: 50 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6272a19

Please sign in to comment.