Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass build parameters correctly, enable dex and macho modules #256

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
tags:
pull_request:
workflow_dispatch:

Expand All @@ -21,6 +20,7 @@ jobs:
include:
- os: ubuntu-22.04
arch: x86_64
build-sdist: true
- os: ubuntu-22.04
arch: i686
- os: ubuntu-22.04
Expand All @@ -43,7 +43,7 @@ jobs:

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all

Expand All @@ -67,9 +67,8 @@ jobs:
fi
CIBW_BEFORE_ALL_WINDOWS: ${{ matrix.before }}
CIBW_BUILD_FRONTEND: build
CIBW_CONFIG_SETTINGS: --enable-cuckoo --enable-magic --enable-dex --enable-macho --enable-openssl
CIBW_ENVIRONMENT: ${{ matrix.env }}
CIBW_SKIP: cp36-*
CIBW_SKIP: cp36-* *-macosx_universal2:arm64
CIBW_TEST_COMMAND: python {package}/tests.py

- name: Store the distribution packages
Expand All @@ -78,6 +77,17 @@ jobs:
name: python-package-distributions-${{ matrix.os }}-${{ matrix.arch }}
path: dist/*.whl

- name: Build Sdist
if: ${{ matrix.build-sdist }}
run: pipx run build --sdist

- name: Store the source distribution package
if: ${{ matrix.build-sdist }}
uses: actions/upload-artifact@v4
with:
name: python-package-distributions-source
path: dist/*.tar.gz

publish-to-pypi:
needs: [build]
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ license_file = LICENSE

[test]
test_suite=tests

[build_ext]
# These modules are not stable or tested enough
# enable_dex = true
# enable_macho = true

# need libjansson-dev
# enable_cuckoo = true

# need libmagic-dev
# enable_magic = true
Loading