Skip to content

Commit

Permalink
update actions and cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Aug 25, 2023
1 parent 9caa658 commit 75f0fe0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,32 @@ 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

- 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
Expand All @@ -50,15 +51,15 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install twine
run: |
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
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 75f0fe0

Please sign in to comment.