diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml index aeb9488..bc6ebc7 100644 --- a/.github/workflows/build_publish.yml +++ b/.github/workflows/build_publish.yml @@ -13,18 +13,20 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v3 name: Install Python - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.5.0 + run: python -m pip install cibuildwheel==2.15.0 + + - name: Get submodules + run: git submodule update --init --recursive - name: Build wheels for Windows if: startsWith(matrix.os, 'windows') run: | - git submodule update --init --recursive python -m cibuildwheel --output-dir wheels env: CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels @@ -32,12 +34,11 @@ jobs: - name: Build wheels for mac and manylinux if: "!startsWith(matrix.os, 'windows')" run: | - git submodule update --init --recursive python -m cibuildwheel --output-dir wheels env: CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 name: Upload wheels with: name: wheels @@ -50,7 +51,7 @@ jobs: steps: - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.x' - name: Install twine @@ -58,7 +59,7 @@ jobs: python -m pip install --upgrade pip pip install twine - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: wheels path: ./wheels diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..9b4d399 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,37 @@ +name: Build Test + +on: [push, pull_request] + +jobs: + build: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + name: Install Python + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.15.0 + + - name: Get submodules + run: git submodule update --init --recursive + + - name: Build wheels for Windows + if: startsWith(matrix.os, 'windows') + run: | + python -m cibuildwheel --output-dir wheels + env: + CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels + + - name: Build wheels for mac and manylinux + if: "!startsWith(matrix.os, 'windows')" + run: | + python -m cibuildwheel --output-dir wheels + env: + CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64" \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30c3fbf..543dcf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.x' - name: Install dependencies diff --git a/setup.py b/setup.py index 8839e62..73420be 100644 --- a/setup.py +++ b/setup.py @@ -312,7 +312,7 @@ def run(self): setup( name='yara-python-dex', - version='1.0.5', + version='1.0.6', description='Python interface for YARA', long_description=readme, long_description_content_type='text/markdown',