Skip to content

Commit

Permalink
Fix error in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
foundkey committed Mar 26, 2024
1 parent 3d5674a commit f9c17a0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
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

0 comments on commit f9c17a0

Please sign in to comment.