Skip to content

Commit f9c17a0

Browse files
authored
Fix error in CI workflow
1 parent 3d5674a commit f9c17a0

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
tags:
87
pull_request:
98
workflow_dispatch:
109

@@ -21,6 +20,7 @@ jobs:
2120
include:
2221
- os: ubuntu-22.04
2322
arch: x86_64
23+
build-sdist: true
2424
- os: ubuntu-22.04
2525
arch: i686
2626
- os: ubuntu-22.04
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Set up QEMU
4545
if: runner.os == 'Linux'
46-
uses: docker/setup-qemu-action@v2
46+
uses: docker/setup-qemu-action@v3
4747
with:
4848
platforms: all
4949

@@ -67,9 +67,8 @@ jobs:
6767
fi
6868
CIBW_BEFORE_ALL_WINDOWS: ${{ matrix.before }}
6969
CIBW_BUILD_FRONTEND: build
70-
CIBW_CONFIG_SETTINGS: --enable-cuckoo --enable-magic --enable-dex --enable-macho --enable-openssl
7170
CIBW_ENVIRONMENT: ${{ matrix.env }}
72-
CIBW_SKIP: cp36-*
71+
CIBW_SKIP: cp36-* *-macosx_universal2:arm64
7372
CIBW_TEST_COMMAND: python {package}/tests.py
7473

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

80+
- name: Build Sdist
81+
if: ${{ matrix.build-sdist }}
82+
run: pipx run build --sdist
83+
84+
- name: Store the source distribution package
85+
if: ${{ matrix.build-sdist }}
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: python-package-distributions-source
89+
path: dist/*.tar.gz
90+
8191
publish-to-pypi:
8292
needs: [build]
8393
runs-on: ubuntu-latest

setup.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ license_file = LICENSE
44

55
[test]
66
test_suite=tests
7+
8+
[build_ext]
9+
# These modules are not stable or tested enough
10+
# enable_dex = true
11+
# enable_macho = true
12+
13+
# need libjansson-dev
14+
# enable_cuckoo = true
15+
16+
# need libmagic-dev
17+
# enable_magic = true

0 commit comments

Comments
 (0)